📄 javatreeparser.java
字号:
typeSpec( _t );
_t = _retTree;
methodHead( _t );
_t = _retTree;
_t = __t385;
_t = _t.getNextSibling();
}
catch ( RecognitionException ex )
{
reportError( ex );
if ( _t != null )
{
_t = _t.getNextSibling();
}
}
_retTree = _t;
}
public final void variableDef(AST _t) throws RecognitionException
{
AST variableDef_AST_in = (AST) _t;
try
{ // for error handling
AST __t390 = _t;
AST tmp57_AST_in = (AST) _t;
match( _t,
VARIABLE_DEF );
_t = _t.getFirstChild();
modifiers( _t );
_t = _retTree;
typeSpec( _t );
_t = _retTree;
variableDeclarator( _t );
_t = _retTree;
varInitializer( _t );
_t = _retTree;
_t = __t390;
_t = _t.getNextSibling();
}
catch ( RecognitionException ex )
{
reportError( ex );
if ( _t != null )
{
_t = _t.getNextSibling();
}
}
_retTree = _t;
}
public final void ctorDef(AST _t) throws RecognitionException
{
AST ctorDef_AST_in = (AST) _t;
try
{ // for error handling
AST __t383 = _t;
AST tmp58_AST_in = (AST) _t;
match( _t,
CTOR_DEF );
_t = _t.getFirstChild();
modifiers( _t );
_t = _retTree;
methodHead( _t );
_t = _retTree;
ctorSList( _t );
_t = _retTree;
_t = __t383;
_t = _t.getNextSibling();
}
catch ( RecognitionException ex )
{
reportError( ex );
if ( _t != null )
{
_t = _t.getNextSibling();
}
}
_retTree = _t;
}
public final void methodDef(AST _t) throws RecognitionException
{
AST methodDef_AST_in = (AST) _t;
try
{ // for error handling
AST __t387 = _t;
AST tmp59_AST_in = (AST) _t;
match( _t,
METHOD_DEF );
_t = _t.getFirstChild();
modifiers( _t );
_t = _retTree;
typeSpec( _t );
_t = _retTree;
methodHead( _t );
_t = _retTree;
{
if ( _t == null ) _t = ASTNULL;
switch ( _t.getType() )
{
case SLIST :
{
slist( _t );
_t = _retTree;
break;
}
case 3 :
{
break;
}
default :
{
throw new NoViableAltException( _t );
}
}
}
_t = __t387;
_t = _t.getNextSibling();
}
catch ( RecognitionException ex )
{
reportError( ex );
if ( _t != null )
{
_t = _t.getNextSibling();
}
}
_retTree = _t;
}
public final void methodHead(AST _t) throws RecognitionException
{
AST methodHead_AST_in = (AST) _t;
try
{ // for error handling
AST tmp60_AST_in = (AST) _t;
match( _t,
IDENT );
_t = _t.getNextSibling();
AST __t404 = _t;
AST tmp61_AST_in = (AST) _t;
match( _t,
PARAMETERS );
_t = _t.getFirstChild();
{
_loop406 : do
{
if ( _t == null ) _t = ASTNULL;
if ( (_t.getType() == PARAMETER_DEF) )
{
parameterDef( _t );
_t = _retTree;
}
else
{
break _loop406;
}
}
while ( true );
}
_t = __t404;
_t = _t.getNextSibling();
{
if ( _t == null ) _t = ASTNULL;
switch ( _t.getType() )
{
case LITERAL_throws :
{
throwsClause( _t );
_t = _retTree;
break;
}
case 3 :
case SLIST :
{
break;
}
default :
{
throw new NoViableAltException( _t );
}
}
}
}
catch ( RecognitionException ex )
{
reportError( ex );
if ( _t != null )
{
_t = _t.getNextSibling();
}
}
_retTree = _t;
}
public final void ctorSList(AST _t) throws RecognitionException
{
AST ctorSList_AST_in = (AST) _t;
try
{ // for error handling
AST __t418 = _t;
AST tmp62_AST_in = (AST) _t;
match( _t,
SLIST );
_t = _t.getFirstChild();
{
if ( _t == null ) _t = ASTNULL;
switch ( _t.getType() )
{
case SUPER_CTOR_CALL :
case CTOR_CALL :
{
ctorCall( _t );
_t = _retTree;
break;
}
case 3 :
case SLIST :
case VARIABLE_DEF :
case CLASS_DEF :
case INTERFACE_DEF :
case LABELED_STAT :
case EXPR :
case EMPTY_STAT :
case LITERAL_synchronized :
case LITERAL_if :
case LITERAL_for :
case LITERAL_while :
case LITERAL_do :
case LITERAL_break :
case LITERAL_continue :
case LITERAL_return :
case LITERAL_switch :
case LITERAL_throw :
case LITERAL_try :
{
break;
}
default :
{
throw new NoViableAltException( _t );
}
}
}
{
_loop421 : do
{
if ( _t == null ) _t = ASTNULL;
if ( (_tokenSet_0.member( _t.getType() )) )
{
stat( _t );
_t = _retTree;
}
else
{
break _loop421;
}
}
while ( true );
}
_t = __t418;
_t = _t.getNextSibling();
}
catch ( RecognitionException ex )
{
reportError( ex );
if ( _t != null )
{
_t = _t.getNextSibling();
}
}
_retTree = _t;
}
public final void variableDeclarator(AST _t) throws RecognitionException
{
AST variableDeclarator_AST_in = (AST) _t;
try
{ // for error handling
if ( _t == null ) _t = ASTNULL;
switch ( _t.getType() )
{
case IDENT :
{
AST tmp63_AST_in = (AST) _t;
match( _t,
IDENT );
_t = _t.getNextSibling();
break;
}
case LBRACK :
{
AST tmp64_AST_in = (AST) _t;
match( _t,
LBRACK );
_t = _t.getNextSibling();
variableDeclarator( _t );
_t = _retTree;
break;
}
default :
{
throw new NoViableAltException( _t );
}
}
}
catch ( RecognitionException ex )
{
reportError( ex );
if ( _t != null )
{
_t = _t.getNextSibling();
}
}
_retTree = _t;
}
public final void varInitializer(AST _t) throws RecognitionException
{
AST varInitializer_AST_in = (AST) _t;
try
{ // for error handling
if ( _t == null ) _t = ASTNULL;
switch ( _t.getType() )
{
case ASSIGN :
{
AST __t397 = _t;
AST tmp65_AST_in = (AST) _t;
match( _t,
ASSIGN );
_t = _t.getFirstChild();
initializer( _t );
_t = _retTree;
_t = __t397;
_t = _t.getNextSibling();
break;
}
case 3 :
{
break;
}
default :
{
throw new NoViableAltException( _t );
}
}
}
catch ( RecognitionException ex )
{
reportError( ex );
if ( _t != null )
{
_t = _t.getNextSibling();
}
}
_retTree = _t;
}
public final void parameterDef(AST _t) throws RecognitionException
{
AST parameterDef_AST_in = (AST) _t;
try
{ // for error handling
AST __t392 = _t;
AST tmp66_AST_in = (AST) _t;
match( _t,
PARAMETER_DEF );
_t = _t.getFirstChild();
modifiers( _t );
_t = _retTree;
typeSpec( _t );
_t = _retTree;
AST tmp67_AST_in = (AST) _t;
match( _t,
IDENT );
_t = _t.getNextSibling();
_t = __t392;
_t = _t.getNextSibling();
}
catch ( RecognitionException ex )
{
reportError( ex );
if ( _t != null )
{
_t = _t.getNextSibling();
}
}
_retTree = _t;
}
public final void objectinitializer(AST _t) throws RecognitionException
{
AST objectinitializer_AST_in = (AST) _t;
try
{ // for error handling
AST __t394 = _t;
AST tmp68_AST_in = (AST) _t;
match( _t,
INSTANCE_INIT );
_t = _t.getFirstChild();
slist( _t );
_t = _retTree;
_t = __t394;
_t = _t.getNextSibling();
}
catch ( RecognitionException ex )
{
reportError( ex );
if ( _t != null )
{
_t = _t.getNextSibling();
}
}
_retTree = _t;
}
public final void initializer(AST _t) throws RecognitionException
{
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -