gw.lang.GosuShop.createStandardParserState()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(85)

本文整理了Java中gw.lang.GosuShop.createStandardParserState()方法的一些代码示例,展示了GosuShop.createStandardParserState()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GosuShop.createStandardParserState()方法的具体详情如下:
包路径:gw.lang.GosuShop
类名称:GosuShop
方法名:createStandardParserState

GosuShop.createStandardParserState介绍

暂无

代码示例

代码示例来源:origin: org.gosu-lang.gosu/gosu-editor

@Override
public void validate( IParsedElement rootParsedElement, String scriptSrc )
{
 IType actualType = getType( scriptSrc );
 if( actualType == null )
 {
  rootParsedElement.addParseException(
   new ParseException(
    GosuShop.createStandardParserState( rootParsedElement, scriptSrc, true ),
    Res.MSG_INVALID_TYPE,
    scriptSrc ) );
 }
 else if( !_expectedType.isAssignableFrom( actualType ) )
 {
  rootParsedElement.addParseException(
   new ParseException(
    GosuShop.createStandardParserState( rootParsedElement, scriptSrc, true ),
    Res.MSG_TYPE_MISMATCH,
    _expectedType.getDisplayName(),
    actualType.getDisplayName() ) );
 }
}

代码示例来源:origin: org.gosu-lang.gosu/gosu-lab

@Override
public void validate( IParsedElement rootParsedElement, String scriptSrc )
{
 IType actualType = getType( scriptSrc );
 if( actualType == null )
 {
  rootParsedElement.addParseException(
   new ParseException(
    GosuShop.createStandardParserState( rootParsedElement, scriptSrc, true ),
    Res.MSG_INVALID_TYPE,
    scriptSrc ) );
 }
 else if( !_expectedType.isAssignableFrom( actualType ) )
 {
  rootParsedElement.addParseException(
   new ParseException(
    GosuShop.createStandardParserState( rootParsedElement, scriptSrc, true ),
    Res.MSG_TYPE_MISMATCH,
    _expectedType.getDisplayName(),
    actualType.getDisplayName() ) );
 }
}

相关文章