public class LLJavaParser extends LLJavaGrammar
abstractMethodBody, annotation, annotationValue, arrayExpr, baseType, block, booleanLiteral, castInstruction, charLiteral, classAnnotationValue, 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 and Description |
---|
LLJavaParser() |
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
protected LLJava.Store storeInstruction(Reducer.Context<SourceId> context, LLJava.StoreArgument argument)
storeInstruction
in class LLJavaGrammar
protected LLJava.Load loadInstruction(Reducer.Context<SourceId> context, LLJava.LoadArgument argument)
loadInstruction
in class LLJavaGrammar
protected LLJava.Get getInstruction(Reducer.Context<SourceId> context, Void dummy, boolean statically, LLJava.FieldReference field)
getInstruction
in class LLJavaGrammar
protected LLJava.Put putInstruction(Reducer.Context<SourceId> context, Void dummy, boolean statically, LLJava.FieldReference field)
putInstruction
in class LLJavaGrammar
protected LLJava.MemberStaticName memberStaticName(Reducer.Context<SourceId> context, LLJava.QualId fullName)
memberStaticName
in class LLJavaGrammar
protected LLJava.MemberDynamicName memberDynamicName(Reducer.Context<SourceId> context, LLJava.MethodHandleExpr factory, List<LLJava.LoadableExpr> bootstrapArguments, LLJava.Id name)
memberDynamicName
in class LLJavaGrammar
protected LLJava.MethodReference methodReference(Reducer.Context<SourceId> context, LLJava.ResultExpr returnType, LLJava.MemberFullName name, List<LLJava.MethodReferenceParameter> params)
methodReference
in class LLJavaGrammar
protected LLJava.Invoke invokeInstruction(Reducer.Context<SourceId> context, Void dummy, List<LLJava.ModifierExpr> modifiers, LLJava.MethodReference ref)
invokeInstruction
in class LLJavaGrammar
protected LLJava.Condition condition(Reducer.Context<SourceId> context, LLJavaLexer.TokenType operator, LLJava.LoadArgument operand)
condition
in class LLJavaGrammar
protected LLJava.If ifInstruction(Reducer.Context<SourceId> context, boolean negative, LLJava.Condition condition, LLJava.CodePoint target)
ifInstruction
in class LLJavaGrammar
protected LLJava.Case switchCase(Reducer.Context<SourceId> context, List<Optional<LLJava.IntLiteral>> labels, LLJava.CodePoint target)
switchCase
in class LLJavaGrammar
protected LLJava.Switch switchInstruction(Reducer.Context<SourceId> context, List<LLJava.Case> cases)
switchInstruction
in class LLJavaGrammar
protected LLJava.Cast castInstruction(Reducer.Context<SourceId> context, LLJava.TypeExpr type)
castInstruction
in class LLJavaGrammar
protected LLJava.Instanceof instanceofInstruction(Reducer.Context<SourceId> context, LLJava.TypeExpr type)
instanceofInstruction
in class LLJavaGrammar
protected LLJava.ReferenceTypeExpr ensureReferenceType(Reducer.Context<SourceId> context, LLJava.TypeExpr type)
protected LLJava.ReferenceTypeExpr ensureReferenceType(MessageReceiver<? super SimpleMessage<SourceId>> msgs, Location<SourceId> location, LLJava.TypeExpr type)
protected LLJava.New newInstruction(Reducer.Context<SourceId> context, LLJava.TypeExpr baseType, List<LLJava.DimensionExpr> dimensions)
newInstruction
in class LLJavaGrammar
protected LLJava.GotoInterval gotoInterval(Reducer.Context<SourceId> context, LLJava.Name start, Optional<LLJava.Name> end)
gotoInterval
in class LLJavaGrammar
protected LLJava.Handler catchHandler(Reducer.Context<SourceId> context, List<LLJava.Label> prefixLabels, Optional<LLJava.ClassReference> type, List<LLJava.Label> infixLabels, LLJava.CodePoint body)
catchHandler
in class LLJavaGrammar
protected LLJava.Try tryInstruction(Reducer.Context<SourceId> context, LLJava.CodeInterval body, List<LLJava.Handler> handlers)
tryInstruction
in class LLJavaGrammar
protected LLJava.Goto gotoInstruction(Reducer.Context<SourceId> context, LLJava.GotoPoint target)
gotoInstruction
in class LLJavaGrammar
protected LLJava.Inc incInstruction(Reducer.Context<SourceId> context, LLJava.VariableRef target, int increment)
incInstruction
in class LLJavaGrammar
protected LLJava.Cmp cmpInstruction(Reducer.Context<SourceId> context, Optional<Boolean> greater)
cmpInstruction
in class LLJavaGrammar
protected LLJava.Instruction simpleInstruction(Reducer.Context<SourceId> context, LLJavaLexer.TokenType type)
simpleInstruction
in class LLJavaGrammar
protected LLJava.Instruction simpleInstruction(LLJavaLexer.TokenType type)
protected LLJava.Block block(Reducer.Context<SourceId> context, List<LLJava.Statement> statements)
block
in class LLJavaGrammar
protected LLJava.CodeMethodBody codeMethodBody(Reducer.Context<SourceId> context, LLJava.Block block)
codeMethodBody
in class LLJavaGrammar
protected LLJava.QualId qualId(Reducer.Context<SourceId> context, List<LLJava.Id> parts)
qualId
in class LLJavaGrammar
protected LLJava.DimensionExpr dimensionExpr(Reducer.Context<SourceId> context, List<LLJava.Annotation> annotations, boolean specified)
dimensionExpr
in class LLJavaGrammar
protected LLJava.TypeExpr type(Reducer.Context<SourceId> context, LLJava.TypeExpr base, List<LLJava.DimensionExpr> dimensions)
type
in class LLJavaGrammar
protected LLJava.TypeParameter typeParameter(Reducer.Context<SourceId> context, List<LLJava.Annotation> annotations, LLJava.Id name, Optional<LLJava.UpperTypeBound> bound)
typeParameter
in class LLJavaGrammar
protected LLJava.Annotation annotation(Reducer.Context<SourceId> context, LLJava.QualId name, List<Map.Entry<LLJava.Id,LLJava.AnnotationValue>> elems)
annotation
in class LLJavaGrammar
protected LLJava.Annotation invisible(Reducer.Context<SourceId> context, LLJava.Annotation annotation)
invisible
in class LLJavaGrammar
protected LLJava.ClassTypeExpr classType(Reducer.Context<SourceId> context, LLJava.QualId name, List<LLJava.TypeArgument> arguments)
classType
in class LLJavaGrammar
protected LLJava.Parameter methodParameter(Reducer.Context<SourceId> context, List<LLJava.ModifierExpr> modifiers, LLJava.TypeExpr type, Optional<LLJava.Name> name)
methodParameter
in class LLJavaGrammar
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)
classDefinition
in class LLJavaGrammar
protected LLJava.Field fieldDefinition(Reducer.Context<SourceId> context, List<LLJava.ModifierExpr> modifiers, LLJava.TypeExpr type, LLJava.Id name, Optional<LLJava.Literal> initializer)
fieldDefinition
in class LLJavaGrammar
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)
methodDefinition
in class LLJavaGrammar
protected LLJava.IntLiteral intLiteral(Reducer.Context<SourceId> context, String text)
intLiteral
in class LLJavaGrammar
protected LLJava.LongLiteral longLiteral(Reducer.Context<SourceId> context, String text)
longLiteral
in class LLJavaGrammar
protected LLJava.FloatLiteral floatLiteral(Reducer.Context<SourceId> context, String text)
floatLiteral
in class LLJavaGrammar
protected LLJava.DoubleLiteral doubleLiteral(Reducer.Context<SourceId> context, String text)
doubleLiteral
in class LLJavaGrammar
protected LLJava.CharLiteral charLiteral(Reducer.Context<SourceId> context, String text)
charLiteral
in class LLJavaGrammar
protected LLJava.StringLiteral stringLiteral(Reducer.Context<SourceId> context, List<String> text)
stringLiteral
in class LLJavaGrammar
protected LLJava.MethodHandleExpr methodHandle(Reducer.Context<SourceId> context, LLJava.MethodHandleTarget target)
methodHandle
in class LLJavaGrammar
protected LLJava.MethodTypeExpr methodType(Reducer.Context<SourceId> context, LLJava.ResultExpr returnType, List<LLJava.TypeExpr> parameters)
methodType
in class LLJavaGrammar
protected LLJava.DynamicExpr dynamicReference(Reducer.Context<SourceId> context, LLJava.TypeExpr type, LLJava.MemberDynamicName fullName)
dynamicReference
in class LLJavaGrammar
protected LLJava.Id id(Reducer.Context<SourceId> context, String text)
id
in class LLJavaGrammar
see also the complete user documentation .