Package eu.bandm.tools.lljava.parser
Class LLJavaParser
java.lang.Object
eu.bandm.tools.lljava.parser.LLJavaGrammar
eu.bandm.tools.lljava.parser.LLJavaParser
-
Field Summary
Fields inherited from class eu.bandm.tools.lljava.parser.LLJavaGrammar
abstractMethodBody, annotation, annotationValue, arrayExpr, baseType, block, booleanLiteral, castInstruction, charLiteral, classAnnotationValue, classDeclarator, classDefinition, classLiteral, classReference, classType, cmpInstruction, cmpOperator, codeMethodBody, condition, constantAnnotationValue, defaultMethodBody, dimensionExpr, doubleLiteral, enumAnnotationValue, exceptions, fieldDefinition, fieldReference, floatLiteral, getInstruction, gotoInstruction, gotoInterval, gotoReference, greedy, id, incInstruction, initializer, instanceofInstruction, intLiteral, invisibleAnnotation, invokeInstruction, invokeInstructionNonrecursive, label, literal, loadable, loadArgument, loadInstruction, localName, localVariable, longLiteral, main, memberDefinition, memberDynamicName, memberFullName, memberStaticName, methodBody, methodDefinition, methodHandle, methodHandleTarget, methodParameter, methodParameters, methodReference, methodReferenceNonrecursive, methodReferenceParameter, methodType, modifier, modifierExpr, modifiers, newInstruction, nullLiteral, operator, primitiveType, primitiveTypeExpr, putInstruction, qualId, qualifier, result, returnsResult, simpleModifierExpr, storeArgument, storeInstruction, stringLiteral, superclass, superinterfaces, thisExpr, type, typeParameter, typeParameters, variableReference, voidResult -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected LLJava.Annotationannotation(Reducer.Context<SourceId> context, LLJava.QualId name, List<Map.Entry<LLJava.Id, LLJava.AnnotationValue>> elems) protected LLJava.Blockblock(Reducer.Context<SourceId> context, List<LLJava.Statement> statements) protected LLJava.CastcastInstruction(Reducer.Context<SourceId> context, LLJava.TypeExpr type) protected LLJava.HandlercatchHandler(Reducer.Context<SourceId> context, List<LLJava.Label> prefixLabels, Optional<LLJava.ClassReference> type, List<LLJava.Label> infixLabels, LLJava.CodePoint body) protected LLJava.CharLiteralcharLiteral(Reducer.Context<SourceId> context, String text) protected LLJava.ClassclassDefinition(Reducer.Context<SourceId> context, List<LLJava.ModifierExpr> modifiers, LLJava.QualId name, List<LLJava.TypeParameter> typeParameters, LLJava.ClassReference superclass, List<LLJava.ClassReference> interfaces, List<LLJava.Member> members) protected LLJava.ClassTypeExprclassType(Reducer.Context<SourceId> context, LLJava.QualId name, List<LLJava.TypeArgument> arguments) protected LLJava.CmpcmpInstruction(Reducer.Context<SourceId> context, Optional<Boolean> greater) protected LLJava.CodeMethodBodycodeMethodBody(Reducer.Context<SourceId> context, LLJava.Block block) protected LLJava.Conditioncondition(Reducer.Context<SourceId> context, LLJavaLexer.TokenType operator, LLJava.LoadArgument operand) protected LLJava.DimensionExprdimensionExpr(Reducer.Context<SourceId> context, List<LLJava.Annotation> annotations, boolean specified) protected LLJava.DoubleLiteraldoubleLiteral(Reducer.Context<SourceId> context, String text) protected LLJava.DynamicExprdynamicReference(Reducer.Context<SourceId> context, LLJava.TypeExpr type, LLJava.MemberDynamicName fullName) protected LLJava.ReferenceTypeExprensureReferenceType(MessageReceiver<? super SimpleMessage<SourceId>> msgs, Location<SourceId> location, LLJava.TypeExpr type) protected LLJava.ReferenceTypeExprensureReferenceType(Reducer.Context<SourceId> context, LLJava.TypeExpr type) protected LLJava.FieldfieldDefinition(Reducer.Context<SourceId> context, List<LLJava.ModifierExpr> modifiers, LLJava.TypeExpr type, LLJava.Id name, Optional<LLJava.Literal> initializer) protected LLJava.FloatLiteralfloatLiteral(Reducer.Context<SourceId> context, String text) protected LLJava.GetgetInstruction(Reducer.Context<SourceId> context, Void dummy, boolean statically, LLJava.FieldReference field) protected LLJava.GotogotoInstruction(Reducer.Context<SourceId> context, LLJava.GotoPoint target) protected LLJava.GotoIntervalgotoInterval(Reducer.Context<SourceId> context, LLJava.Name start, Optional<LLJava.Name> end) protected LLJava.Idid(Reducer.Context<SourceId> context, String text) protected LLJava.IfifInstruction(Reducer.Context<SourceId> context, boolean negative, LLJava.Condition condition, LLJava.CodePoint target) protected LLJava.IncincInstruction(Reducer.Context<SourceId> context, LLJava.VariableRef target, int increment) protected LLJava.InstanceofinstanceofInstruction(Reducer.Context<SourceId> context, LLJava.TypeExpr type) protected LLJava.IntLiteralintLiteral(Reducer.Context<SourceId> context, String text) protected LLJava.Annotationinvisible(Reducer.Context<SourceId> context, LLJava.Annotation annotation) protected LLJava.InvokeinvokeInstruction(Reducer.Context<SourceId> context, Void dummy, List<LLJava.ModifierExpr> modifiers, LLJava.MethodReference ref) protected LLJava.LoadloadInstruction(Reducer.Context<SourceId> context, LLJava.LoadArgument argument) protected LLJava.LongLiterallongLiteral(Reducer.Context<SourceId> context, String text) protected LLJava.MemberDynamicNamememberDynamicName(Reducer.Context<SourceId> context, LLJava.MethodHandleExpr factory, List<LLJava.LoadableExpr> bootstrapArguments, LLJava.Id name) protected LLJava.MemberStaticNamememberStaticName(Reducer.Context<SourceId> context, LLJava.QualId fullName) protected LLJava.MethodmethodDefinition(Reducer.Context<SourceId> context, List<LLJava.ModifierExpr> modifiers, List<LLJava.TypeParameter> typeParameters, LLJava.ResultExpr returnType, LLJava.Id name, List<LLJava.Parameter> parameters, List<LLJava.ClassReference> exceptions, LLJava.MethodBody body) protected LLJava.MethodHandleExprmethodHandle(Reducer.Context<SourceId> context, LLJava.MethodHandleTarget target) protected LLJava.ParametermethodParameter(Reducer.Context<SourceId> context, List<LLJava.ModifierExpr> modifiers, LLJava.TypeExpr type, Optional<LLJava.Name> name) protected LLJava.MethodReferencemethodReference(Reducer.Context<SourceId> context, LLJava.ResultExpr returnType, LLJava.MemberFullName name, List<LLJava.MethodReferenceParameter> params) protected LLJava.MethodTypeExprmethodType(Reducer.Context<SourceId> context, LLJava.ResultExpr returnType, List<LLJava.TypeExpr> parameters) protected LLJava.NewnewInstruction(Reducer.Context<SourceId> context, LLJava.TypeExpr baseType, List<LLJava.DimensionExpr> dimensions) protected LLJava.PutputInstruction(Reducer.Context<SourceId> context, Void dummy, boolean statically, LLJava.FieldReference field) protected LLJava.QualIdqualId(Reducer.Context<SourceId> context, List<LLJava.Id> parts) protected LLJava.Instructionprotected LLJava.InstructionsimpleInstruction(Reducer.Context<SourceId> context, LLJavaLexer.TokenType type) protected LLJava.StorestoreInstruction(Reducer.Context<SourceId> context, LLJava.StoreArgument argument) protected LLJava.StringLiteralstringLiteral(Reducer.Context<SourceId> context, List<String> text) protected LLJava.CaseswitchCase(Reducer.Context<SourceId> context, List<Optional<LLJava.IntLiteral>> labels, LLJava.CodePoint target) protected LLJava.SwitchswitchInstruction(Reducer.Context<SourceId> context, List<LLJava.Case> cases) protected LLJava.TrytryInstruction(Reducer.Context<SourceId> context, LLJava.CodeInterval body, List<LLJava.Handler> handlers) protected LLJava.TypeExprtype(Reducer.Context<SourceId> context, LLJava.TypeExpr base, List<LLJava.DimensionExpr> dimensions) protected LLJava.TypeParametertypeParameter(Reducer.Context<SourceId> context, List<LLJava.Annotation> annotations, LLJava.Id name, Optional<LLJava.UpperTypeBound> bound) Methods inherited from class eu.bandm.tools.lljava.parser.LLJavaGrammar
angle, annotation, annotationValue, annotationValue, arrayAnnotationValue, block, brace, bracket, catchHandler, check, classType, codeInterval, codeReference, comma, command, command, constant, dynamicReference, elementValuePair, elementValuePairs, flag, ifInstruction, inlineInterval, inlineReference, instruction, loadable, locate, locate, lowerTypeBound, memberDynamicName, nestedAnnotationValue, paren, simple, simple, simple, simpleAnnotation, statement, switchCase, switchInstruction, tryInstruction, typeArgument, typeArguments, typeBound, unparsedLiteral, unparsedLiteralText, upperTypeBound, wildcard
-
Constructor Details
-
LLJavaParser
public LLJavaParser()
-
-
Method Details
-
storeInstruction
protected LLJava.Store storeInstruction(Reducer.Context<SourceId> context, LLJava.StoreArgument argument) - Specified by:
storeInstructionin classLLJavaGrammar
-
loadInstruction
protected LLJava.Load loadInstruction(Reducer.Context<SourceId> context, LLJava.LoadArgument argument) - Specified by:
loadInstructionin classLLJavaGrammar
-
getInstruction
protected LLJava.Get getInstruction(Reducer.Context<SourceId> context, Void dummy, boolean statically, LLJava.FieldReference field) - Specified by:
getInstructionin classLLJavaGrammar
-
putInstruction
protected LLJava.Put putInstruction(Reducer.Context<SourceId> context, Void dummy, boolean statically, LLJava.FieldReference field) - Specified by:
putInstructionin classLLJavaGrammar
-
memberStaticName
protected LLJava.MemberStaticName memberStaticName(Reducer.Context<SourceId> context, LLJava.QualId fullName) - Specified by:
memberStaticNamein classLLJavaGrammar
-
memberDynamicName
protected LLJava.MemberDynamicName memberDynamicName(Reducer.Context<SourceId> context, LLJava.MethodHandleExpr factory, List<LLJava.LoadableExpr> bootstrapArguments, LLJava.Id name) - Specified by:
memberDynamicNamein classLLJavaGrammar
-
methodReference
protected LLJava.MethodReference methodReference(Reducer.Context<SourceId> context, LLJava.ResultExpr returnType, LLJava.MemberFullName name, List<LLJava.MethodReferenceParameter> params) - Specified by:
methodReferencein classLLJavaGrammar
-
invokeInstruction
protected LLJava.Invoke invokeInstruction(Reducer.Context<SourceId> context, Void dummy, List<LLJava.ModifierExpr> modifiers, LLJava.MethodReference ref) - Specified by:
invokeInstructionin classLLJavaGrammar
-
condition
protected LLJava.Condition condition(Reducer.Context<SourceId> context, LLJavaLexer.TokenType operator, LLJava.LoadArgument operand) - Specified by:
conditionin classLLJavaGrammar
-
ifInstruction
protected LLJava.If ifInstruction(Reducer.Context<SourceId> context, boolean negative, LLJava.Condition condition, LLJava.CodePoint target) - Specified by:
ifInstructionin classLLJavaGrammar
-
switchCase
protected LLJava.Case switchCase(Reducer.Context<SourceId> context, List<Optional<LLJava.IntLiteral>> labels, LLJava.CodePoint target) - Specified by:
switchCasein classLLJavaGrammar
-
switchInstruction
protected LLJava.Switch switchInstruction(Reducer.Context<SourceId> context, List<LLJava.Case> cases) - Specified by:
switchInstructionin classLLJavaGrammar
-
castInstruction
- Specified by:
castInstructionin classLLJavaGrammar
-
instanceofInstruction
protected LLJava.Instanceof instanceofInstruction(Reducer.Context<SourceId> context, LLJava.TypeExpr type) - Specified by:
instanceofInstructionin classLLJavaGrammar
-
ensureReferenceType
protected LLJava.ReferenceTypeExpr ensureReferenceType(Reducer.Context<SourceId> context, LLJava.TypeExpr type) -
ensureReferenceType
protected LLJava.ReferenceTypeExpr ensureReferenceType(MessageReceiver<? super SimpleMessage<SourceId>> msgs, Location<SourceId> location, LLJava.TypeExpr type) -
newInstruction
protected LLJava.New newInstruction(Reducer.Context<SourceId> context, LLJava.TypeExpr baseType, List<LLJava.DimensionExpr> dimensions) - Specified by:
newInstructionin classLLJavaGrammar
-
gotoInterval
protected LLJava.GotoInterval gotoInterval(Reducer.Context<SourceId> context, LLJava.Name start, Optional<LLJava.Name> end) - Specified by:
gotoIntervalin classLLJavaGrammar
-
catchHandler
protected LLJava.Handler catchHandler(Reducer.Context<SourceId> context, List<LLJava.Label> prefixLabels, Optional<LLJava.ClassReference> type, List<LLJava.Label> infixLabels, LLJava.CodePoint body) - Specified by:
catchHandlerin classLLJavaGrammar
-
tryInstruction
protected LLJava.Try tryInstruction(Reducer.Context<SourceId> context, LLJava.CodeInterval body, List<LLJava.Handler> handlers) - Specified by:
tryInstructionin classLLJavaGrammar
-
gotoInstruction
- Specified by:
gotoInstructionin classLLJavaGrammar
-
incInstruction
protected LLJava.Inc incInstruction(Reducer.Context<SourceId> context, LLJava.VariableRef target, int increment) - Specified by:
incInstructionin classLLJavaGrammar
-
cmpInstruction
- Specified by:
cmpInstructionin classLLJavaGrammar
-
simpleInstruction
protected LLJava.Instruction simpleInstruction(Reducer.Context<SourceId> context, LLJavaLexer.TokenType type) - Specified by:
simpleInstructionin classLLJavaGrammar
-
simpleInstruction
-
block
- Specified by:
blockin classLLJavaGrammar
-
codeMethodBody
protected LLJava.CodeMethodBody codeMethodBody(Reducer.Context<SourceId> context, LLJava.Block block) - Specified by:
codeMethodBodyin classLLJavaGrammar
-
qualId
- Specified by:
qualIdin classLLJavaGrammar
-
dimensionExpr
protected LLJava.DimensionExpr dimensionExpr(Reducer.Context<SourceId> context, List<LLJava.Annotation> annotations, boolean specified) - Specified by:
dimensionExprin classLLJavaGrammar
-
type
protected LLJava.TypeExpr type(Reducer.Context<SourceId> context, LLJava.TypeExpr base, List<LLJava.DimensionExpr> dimensions) - Specified by:
typein classLLJavaGrammar
-
typeParameter
protected LLJava.TypeParameter typeParameter(Reducer.Context<SourceId> context, List<LLJava.Annotation> annotations, LLJava.Id name, Optional<LLJava.UpperTypeBound> bound) - Specified by:
typeParameterin classLLJavaGrammar
-
annotation
protected LLJava.Annotation annotation(Reducer.Context<SourceId> context, LLJava.QualId name, List<Map.Entry<LLJava.Id, LLJava.AnnotationValue>> elems) - Specified by:
annotationin classLLJavaGrammar
-
invisible
protected LLJava.Annotation invisible(Reducer.Context<SourceId> context, LLJava.Annotation annotation) - Specified by:
invisiblein classLLJavaGrammar
-
classType
protected LLJava.ClassTypeExpr classType(Reducer.Context<SourceId> context, LLJava.QualId name, List<LLJava.TypeArgument> arguments) - Specified by:
classTypein classLLJavaGrammar
-
methodParameter
protected LLJava.Parameter methodParameter(Reducer.Context<SourceId> context, List<LLJava.ModifierExpr> modifiers, LLJava.TypeExpr type, Optional<LLJava.Name> name) - Specified by:
methodParameterin classLLJavaGrammar
-
classDefinition
protected LLJava.Class classDefinition(Reducer.Context<SourceId> context, List<LLJava.ModifierExpr> modifiers, LLJava.QualId name, List<LLJava.TypeParameter> typeParameters, LLJava.ClassReference superclass, List<LLJava.ClassReference> interfaces, List<LLJava.Member> members) - Specified by:
classDefinitionin classLLJavaGrammar
-
fieldDefinition
protected LLJava.Field fieldDefinition(Reducer.Context<SourceId> context, List<LLJava.ModifierExpr> modifiers, LLJava.TypeExpr type, LLJava.Id name, Optional<LLJava.Literal> initializer) - Specified by:
fieldDefinitionin classLLJavaGrammar
-
methodDefinition
protected LLJava.Method methodDefinition(Reducer.Context<SourceId> context, List<LLJava.ModifierExpr> modifiers, List<LLJava.TypeParameter> typeParameters, LLJava.ResultExpr returnType, LLJava.Id name, List<LLJava.Parameter> parameters, List<LLJava.ClassReference> exceptions, LLJava.MethodBody body) - Specified by:
methodDefinitionin classLLJavaGrammar
-
intLiteral
- Specified by:
intLiteralin classLLJavaGrammar
-
longLiteral
- Specified by:
longLiteralin classLLJavaGrammar
-
floatLiteral
- Specified by:
floatLiteralin classLLJavaGrammar
-
doubleLiteral
- Specified by:
doubleLiteralin classLLJavaGrammar
-
charLiteral
- Specified by:
charLiteralin classLLJavaGrammar
-
stringLiteral
- Specified by:
stringLiteralin classLLJavaGrammar
-
methodHandle
protected LLJava.MethodHandleExpr methodHandle(Reducer.Context<SourceId> context, LLJava.MethodHandleTarget target) - Specified by:
methodHandlein classLLJavaGrammar
-
methodType
protected LLJava.MethodTypeExpr methodType(Reducer.Context<SourceId> context, LLJava.ResultExpr returnType, List<LLJava.TypeExpr> parameters) - Specified by:
methodTypein classLLJavaGrammar
-
dynamicReference
protected LLJava.DynamicExpr dynamicReference(Reducer.Context<SourceId> context, LLJava.TypeExpr type, LLJava.MemberDynamicName fullName) - Specified by:
dynamicReferencein classLLJavaGrammar
-
id
- Specified by:
idin classLLJavaGrammar
-