org.omegahat.Environment.Parser.AntlrParser
Class omegaJavaGrammar
java.lang.Object
|
+--antlr.Parser
|
+--antlr.LLkParser
|
+--org.omegahat.Environment.Parser.AntlrParser.omegaJavaGrammar
- All Implemented Interfaces:
- OmegaTokenTypes
- Direct Known Subclasses:
- CorbaCallParser, UserClassOmegaParser
- public class omegaJavaGrammar
- extends antlr.LLkParser
- implements OmegaTokenTypes
Parser for the Omegahat language, based on the
Java grammar from the ANTLR distribution and generated
by the ANTLR
parser generator.
| Fields inherited from class antlr.Parser |
astFactory, exceptionLevel, guessing, input, returnAST, tokenNames |
| Fields inherited from interface org.omegahat.Environment.Parser.AntlrParser.OmegaTokenTypes |
ABSTRACT, ARG_LIST, ARRAY_DECLARATOR, ARRAY_INIT, ASSIGN, BAND, BAND_ASSIGN, BLOCK, BNOT, BOR, BOR_ASSIGN, BREAK, BSR, BSR_ASSIGN, BXOR, BXOR_ASSIGN, CHAR_LITERAL, CLASS_DEF, COLON, COMMA, CONTINUE, CTOR_DEF, DEC, DIV, DIV_ASSIGN, DOT, DOTS, EAGER, ELEMENT_OP, EOF, EQUAL, ESC, EXPONENT, EXPONENT_OP, EXPR, EXTENDS_CLAUSE, FINAL, FLOAT_SUFFIX, FUNCTION, GE, GT, HEX_DIGIT, IDENT, IMPLEMENTS_CLAUSE, IMPORT, INC, INDEX_OP, INSTANCE_INIT, INSTANCEOF, INTERFACE_DEF, LABELED_STAT, LAND, LAZY, LBRACK, LCURLY, LE, LITERAL_abstract, LITERAL_boolean, LITERAL_break, LITERAL_byte, LITERAL_case, LITERAL_catch, LITERAL_char, LITERAL_class, LITERAL_const, LITERAL_continue, LITERAL_default, LITERAL_do, LITERAL_double, LITERAL_eager, LITERAL_else, LITERAL_extends, LITERAL_false, LITERAL_final, LITERAL_finally, LITERAL_float, LITERAL_for, LITERAL_function, LITERAL_global, LITERAL_if, LITERAL_implements, LITERAL_import, LITERAL_in, LITERAL_instanceof, LITERAL_int, LITERAL_interface, LITERAL_lazy, LITERAL_long, LITERAL_method, LITERAL_native, LITERAL_new, LITERAL_null, LITERAL_private, LITERAL_protected, LITERAL_public, LITERAL_return, LITERAL_short, LITERAL_static, LITERAL_super, LITERAL_switch, LITERAL_synchronized, LITERAL_this, LITERAL_threadsafe, LITERAL_throw, LITERAL_throws, LITERAL_transient, LITERAL_true, LITERAL_try, LITERAL_void, LITERAL_while, LNOT, LOR, LPAREN, LT, METHOD, METHOD_CALL, METHOD_DEF, MINUS, MINUS_ASSIGN, MISSING_ARG, ML_COMMENT, MOD, MOD_ASSIGN, MODIFIERS, NOT_EQUAL, NULL_TREE_LOOKAHEAD, NUM_FLOAT, NUM_INT, NUM_LONG, OBJBLOCK, PACKAGE_DEF, PARAMETER_DEF, PARAMETERS, PLUS, PLUS_ASSIGN, POST_DEC, POST_INC, QUESTION, RBRACK, RCURLY, RETURN, RPAREN, SEMI, SEQUENCE_OP, SL, SL_ASSIGN, SL_COMMENT, SLIST, SR, SR_ASSIGN, STAR, STAR_ASSIGN, STATIC_INIT, STRING_LITERAL, SYNCHRONIZED, THROW, TRANSIENT, TYPE, TYPECAST, UNARY_MINUS, UNARY_PLUS, VARIABLE_DEF, VOCAB, WS |
|
Method Summary |
void |
aCase()
|
void |
additiveExpression()
|
void |
andExpression()
|
void |
argList()
|
void |
arrayInitializer()
|
void |
assignmentExpression()
|
void |
builtInType()
|
void |
casesGroup()
|
void |
caseSList()
|
void |
castExpression()
|
void |
classBlock()
|
void |
classDefinition(antlr.collections.AST modifiers)
|
void |
comments()
|
void |
compoundStatement()
|
void |
conditionalExpression()
|
void |
constant()
|
FunctionExpression |
createConstructorExpression(java.lang.String name,
List args,
List exceptions)
|
FunctionExpression |
createConstructorExpression(java.lang.String name,
List args,
List exceptions,
boolean constructor)
|
FieldAccess |
createFieldAccess(ExpressionInt qualifier,
java.lang.String id)
|
FieldAccess |
createFieldAccess(Name n,
java.lang.String lastName)
|
FunctionExpression |
createFunctionExpression(ExpressionInt body,
List args,
Name type,
List exceptions,
Name name,
FunctionParameterModifier modifier,
Comment documentation)
|
FunctionExpression |
createFunctionExpression(ExpressionInt body,
List args,
Name type,
List exceptions,
Name name,
FunctionParameterModifier modifier,
Comment documentation,
boolean constructor)
|
MethodCall |
createMethodCall(ExpressionInt expr,
List args)
|
MethodCall |
createMethodCall(ExpressionInt expr,
java.lang.String name,
List args)
|
MethodCall |
createMethodCall(FieldAccess field,
java.lang.String lastName,
List args)
|
MethodCall |
createMethodCall(Name n,
List args)
|
MethodExpression |
createMethodExpression(ExpressionInt body,
List args,
Name type,
List exceptions,
Name name,
FunctionParameterModifier modifier)
|
MethodExpression |
createMethodExpression(ExpressionInt body,
List args,
Name type,
List exceptions,
Name name,
FunctionParameterModifier modifier,
Comment doc)
|
void |
ctorHead()
|
void |
declaration()
|
void |
declaratorBrackets(antlr.collections.AST typ)
|
void |
equalityExpression()
|
void |
evaluationUnit()
|
void |
exclusiveOrExpression()
|
void |
expression()
|
void |
expressionList()
|
void |
field()
|
void |
forInit()
|
void |
forLoop()
|
void |
functionDefinition()
|
void |
functionExpression()
|
void |
functionIdentifier()
|
void |
functionParameter()
|
void |
functionParametersList()
|
void |
handler()
|
boolean |
honorCharacters()
|
boolean |
honorCharacters(boolean v)
|
void |
identifier()
|
void |
identifierStar()
|
void |
imaginaryTokenDefinitions()
|
void |
implementsClause()
|
void |
importDefinition()
|
void |
inclusiveOrExpression()
|
void |
initializer()
|
void |
interfaceDefinition(antlr.collections.AST modifiers)
|
void |
interfaceExtends()
|
void |
lazyEvaluation()
|
void |
logicalAndExpression()
|
void |
logicalOrExpression()
|
Comment |
makeComment(antlr.collections.AST c)
|
void |
modifier()
|
void |
modifiers()
|
void |
multiplicativeExpression()
|
void |
newArrayDeclarator()
|
void |
newExpression()
object instantiation. |
void |
omegaExpression()
|
void |
optionalExpression()
|
void |
parameterDeclaration()
|
void |
parameterDeclarationList()
|
void |
parameterDeclaratorBrackets(antlr.collections.AST t)
|
void |
parameterModifier()
|
void |
postfixExpression()
|
void |
powerExpression()
|
void |
primaryExpression()
|
void |
relationalExpression()
|
void |
returnTypeBrackersOnEndOfMethodHead(antlr.collections.AST typ)
|
void |
shiftExpression()
|
void |
statement()
|
void |
superClassClause()
|
void |
throwsClause()
|
void |
tryBlock()
|
void |
type()
|
void |
typeDefinition()
|
void |
typeSpec(boolean addNode)
|
void |
typeSpec(boolean addImagNode,
boolean forClass)
|
void |
variableDeclarator(antlr.collections.AST mods,
antlr.collections.AST t)
|
void |
variableDefinitions(antlr.collections.AST mods,
antlr.collections.AST t)
|
void |
varInitializer()
|
| Methods inherited from class antlr.LLkParser |
consume, LA, LT, traceIn, traceOut |
| Methods inherited from class antlr.Parser |
addMessageListener, addParserListener, addParserMatchListener, addParserTokenListener, addSemanticPredicateListener, addSyntacticPredicateListener, addTraceListener, consumeUntil, consumeUntil, defaultDebuggingSetup, getAST, getASTFactory, getTokenName, getTokenNames, isDebugMode, mark, match, match, matchNot, panic, removeMessageListener, removeParserListener, removeParserMatchListener, removeParserTokenListener, removeSemanticPredicateListener, removeSyntacticPredicateListener, removeTraceListener, reportError, reportError, reportWarning, rewind, setASTFactory, setASTNodeClass, setASTNodeType, setDebugMode, setIgnoreInvalidDebugCalls, setTokenBuffer, setTokenObjectClass |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
honorCharacters
protected boolean honorCharacters
_tokenNames
public static final java.lang.String[] _tokenNames
_tokenSet_0
public static final antlr.collections.impl.BitSet _tokenSet_0
_tokenSet_1
public static final antlr.collections.impl.BitSet _tokenSet_1
_tokenSet_2
public static final antlr.collections.impl.BitSet _tokenSet_2
_tokenSet_3
public static final antlr.collections.impl.BitSet _tokenSet_3
_tokenSet_4
public static final antlr.collections.impl.BitSet _tokenSet_4
_tokenSet_5
public static final antlr.collections.impl.BitSet _tokenSet_5
_tokenSet_6
public static final antlr.collections.impl.BitSet _tokenSet_6
_tokenSet_7
public static final antlr.collections.impl.BitSet _tokenSet_7
_tokenSet_8
public static final antlr.collections.impl.BitSet _tokenSet_8
_tokenSet_9
public static final antlr.collections.impl.BitSet _tokenSet_9
_tokenSet_10
public static final antlr.collections.impl.BitSet _tokenSet_10
_tokenSet_11
public static final antlr.collections.impl.BitSet _tokenSet_11
_tokenSet_12
public static final antlr.collections.impl.BitSet _tokenSet_12
_tokenSet_13
public static final antlr.collections.impl.BitSet _tokenSet_13
_tokenSet_14
public static final antlr.collections.impl.BitSet _tokenSet_14
_tokenSet_15
public static final antlr.collections.impl.BitSet _tokenSet_15
_tokenSet_16
public static final antlr.collections.impl.BitSet _tokenSet_16
_tokenSet_17
public static final antlr.collections.impl.BitSet _tokenSet_17
_tokenSet_18
public static final antlr.collections.impl.BitSet _tokenSet_18
_tokenSet_19
public static final antlr.collections.impl.BitSet _tokenSet_19
_tokenSet_20
public static final antlr.collections.impl.BitSet _tokenSet_20
_tokenSet_21
public static final antlr.collections.impl.BitSet _tokenSet_21
_tokenSet_22
public static final antlr.collections.impl.BitSet _tokenSet_22
_tokenSet_23
public static final antlr.collections.impl.BitSet _tokenSet_23
_tokenSet_24
public static final antlr.collections.impl.BitSet _tokenSet_24
_tokenSet_25
public static final antlr.collections.impl.BitSet _tokenSet_25
_tokenSet_26
public static final antlr.collections.impl.BitSet _tokenSet_26
_tokenSet_27
public static final antlr.collections.impl.BitSet _tokenSet_27
_tokenSet_28
public static final antlr.collections.impl.BitSet _tokenSet_28
_tokenSet_29
public static final antlr.collections.impl.BitSet _tokenSet_29
_tokenSet_30
public static final antlr.collections.impl.BitSet _tokenSet_30
_tokenSet_31
public static final antlr.collections.impl.BitSet _tokenSet_31
_tokenSet_32
public static final antlr.collections.impl.BitSet _tokenSet_32
_tokenSet_33
public static final antlr.collections.impl.BitSet _tokenSet_33
_tokenSet_34
public static final antlr.collections.impl.BitSet _tokenSet_34
_tokenSet_35
public static final antlr.collections.impl.BitSet _tokenSet_35
_tokenSet_36
public static final antlr.collections.impl.BitSet _tokenSet_36
_tokenSet_37
public static final antlr.collections.impl.BitSet _tokenSet_37
_tokenSet_38
public static final antlr.collections.impl.BitSet _tokenSet_38
_tokenSet_39
public static final antlr.collections.impl.BitSet _tokenSet_39
_tokenSet_40
public static final antlr.collections.impl.BitSet _tokenSet_40
_tokenSet_41
public static final antlr.collections.impl.BitSet _tokenSet_41
_tokenSet_42
public static final antlr.collections.impl.BitSet _tokenSet_42
_tokenSet_43
public static final antlr.collections.impl.BitSet _tokenSet_43
_tokenSet_44
public static final antlr.collections.impl.BitSet _tokenSet_44
_tokenSet_45
public static final antlr.collections.impl.BitSet _tokenSet_45
_tokenSet_46
public static final antlr.collections.impl.BitSet _tokenSet_46
_tokenSet_47
public static final antlr.collections.impl.BitSet _tokenSet_47
_tokenSet_48
public static final antlr.collections.impl.BitSet _tokenSet_48
_tokenSet_49
public static final antlr.collections.impl.BitSet _tokenSet_49
_tokenSet_50
public static final antlr.collections.impl.BitSet _tokenSet_50
_tokenSet_51
public static final antlr.collections.impl.BitSet _tokenSet_51
_tokenSet_52
public static final antlr.collections.impl.BitSet _tokenSet_52
_tokenSet_53
public static final antlr.collections.impl.BitSet _tokenSet_53
_tokenSet_54
public static final antlr.collections.impl.BitSet _tokenSet_54
_tokenSet_55
public static final antlr.collections.impl.BitSet _tokenSet_55
_tokenSet_56
public static final antlr.collections.impl.BitSet _tokenSet_56
_tokenSet_57
public static final antlr.collections.impl.BitSet _tokenSet_57
_tokenSet_58
public static final antlr.collections.impl.BitSet _tokenSet_58
_tokenSet_59
public static final antlr.collections.impl.BitSet _tokenSet_59
_tokenSet_60
public static final antlr.collections.impl.BitSet _tokenSet_60
_tokenSet_61
public static final antlr.collections.impl.BitSet _tokenSet_61
_tokenSet_62
public static final antlr.collections.impl.BitSet _tokenSet_62
_tokenSet_63
public static final antlr.collections.impl.BitSet _tokenSet_63
_tokenSet_64
public static final antlr.collections.impl.BitSet _tokenSet_64
_tokenSet_65
public static final antlr.collections.impl.BitSet _tokenSet_65
_tokenSet_66
public static final antlr.collections.impl.BitSet _tokenSet_66
_tokenSet_67
public static final antlr.collections.impl.BitSet _tokenSet_67
_tokenSet_68
public static final antlr.collections.impl.BitSet _tokenSet_68
_tokenSet_69
public static final antlr.collections.impl.BitSet _tokenSet_69
_tokenSet_70
public static final antlr.collections.impl.BitSet _tokenSet_70
_tokenSet_71
public static final antlr.collections.impl.BitSet _tokenSet_71
_tokenSet_72
public static final antlr.collections.impl.BitSet _tokenSet_72
_tokenSet_73
public static final antlr.collections.impl.BitSet _tokenSet_73
_tokenSet_74
public static final antlr.collections.impl.BitSet _tokenSet_74
_tokenSet_75
public static final antlr.collections.impl.BitSet _tokenSet_75
_tokenSet_76
public static final antlr.collections.impl.BitSet _tokenSet_76
_tokenSet_77
public static final antlr.collections.impl.BitSet _tokenSet_77
_tokenSet_78
public static final antlr.collections.impl.BitSet _tokenSet_78
_tokenSet_79
public static final antlr.collections.impl.BitSet _tokenSet_79
_tokenSet_80
public static final antlr.collections.impl.BitSet _tokenSet_80
_tokenSet_81
public static final antlr.collections.impl.BitSet _tokenSet_81
_tokenSet_82
public static final antlr.collections.impl.BitSet _tokenSet_82
_tokenSet_83
public static final antlr.collections.impl.BitSet _tokenSet_83
_tokenSet_84
public static final antlr.collections.impl.BitSet _tokenSet_84
_tokenSet_85
public static final antlr.collections.impl.BitSet _tokenSet_85
omegaJavaGrammar
protected omegaJavaGrammar(antlr.TokenBuffer tokenBuf,
int k)
omegaJavaGrammar
public omegaJavaGrammar(antlr.TokenBuffer tokenBuf)
omegaJavaGrammar
protected omegaJavaGrammar(antlr.Tokenizer lexer,
int k)
omegaJavaGrammar
public omegaJavaGrammar(antlr.Tokenizer lexer)
honorCharacters
public boolean honorCharacters()
honorCharacters
public boolean honorCharacters(boolean v)
createFieldAccess
public FieldAccess createFieldAccess(Name n,
java.lang.String lastName)
createFieldAccess
public FieldAccess createFieldAccess(ExpressionInt qualifier,
java.lang.String id)
createMethodCall
public MethodCall createMethodCall(ExpressionInt expr,
List args)
createMethodCall
public MethodCall createMethodCall(ExpressionInt expr,
java.lang.String name,
List args)
createMethodCall
public MethodCall createMethodCall(FieldAccess field,
java.lang.String lastName,
List args)
createMethodCall
public MethodCall createMethodCall(Name n,
List args)
createMethodExpression
public MethodExpression createMethodExpression(ExpressionInt body,
List args,
Name type,
List exceptions,
Name name,
FunctionParameterModifier modifier)
createMethodExpression
public MethodExpression createMethodExpression(ExpressionInt body,
List args,
Name type,
List exceptions,
Name name,
FunctionParameterModifier modifier,
Comment doc)
createFunctionExpression
public FunctionExpression createFunctionExpression(ExpressionInt body,
List args,
Name type,
List exceptions,
Name name,
FunctionParameterModifier modifier,
Comment documentation)
createFunctionExpression
public FunctionExpression createFunctionExpression(ExpressionInt body,
List args,
Name type,