本文整理了Java中gw.lang.GosuShop.createStandardParserState()
方法的一些代码示例,展示了GosuShop.createStandardParserState()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GosuShop.createStandardParserState()
方法的具体详情如下:
包路径:gw.lang.GosuShop
类名称: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() ) );
}
}
内容来源于网络,如有侵权,请联系作者删除!