public class LLJavaParser3 extends LLJavaGrammar3
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, 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, primType, putInstruction, qualId, qualifier, result, returnsResult, simpleModifierExpr, storeArgument, storeInstruction, stringLiteral, superclass, superinterfaces, thisExpr, type, typeParameter, typeParameters, variableReference, voidResult
Constructor and Description |
---|
LLJavaParser3() |
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, lowerTypeBound, memberDynamicName, nestedAnnotationValue, paren, simple, simple, simple, simpleAnnotation, statement, switchCase, switchInstruction, tryInstruction, typeArgument, typeArguments, typeBound, unparsedLiteral, unparsedLiteralText, upperTypeBound, wildcard
protected LLJava.Store storeInstruction(MessageReceiver<? super SimpleMessage<SourceId>> msgs, Location<SourceId> location, LLJava.StoreArgument argument)
storeInstruction
in class LLJavaGrammar3
protected LLJava.Load loadInstruction(MessageReceiver<? super SimpleMessage<SourceId>> msgs, Location<SourceId> location, LLJava.LoadArgument argument)
loadInstruction
in class LLJavaGrammar3
protected LLJava.Get getInstruction(MessageReceiver<? super SimpleMessage<SourceId>> msgs, Location<SourceId> location, java.lang.Void dummy, boolean statically, LLJava.FieldReference field)
getInstruction
in class LLJavaGrammar3
protected LLJava.Put putInstruction(MessageReceiver<? super SimpleMessage<SourceId>> msgs, Location<SourceId> location, java.lang.Void dummy, boolean statically, LLJava.FieldReference field)
putInstruction
in class LLJavaGrammar3
protected LLJava.MemberStaticName memberStaticName(MessageReceiver<? super SimpleMessage<SourceId>> msgs, Location<SourceId> location, LLJava.QualId fullName)
memberStaticName
in class LLJavaGrammar3
protected LLJava.MemberDynamicName memberDynamicName(MessageReceiver<? super SimpleMessage<SourceId>> msgs, Location<SourceId> location, LLJava.MethodHandleExpr factory, java.util.List<LLJava.LoadableExpr> bootstrapArguments, LLJava.Id name)
memberDynamicName
in class LLJavaGrammar3
protected LLJava.MethodReference methodReference(MessageReceiver<? super SimpleMessage<SourceId>> msgs, Location<SourceId> location, LLJava.ResultExpr returnType, LLJava.MemberFullName name, java.util.List<LLJava.MethodReferenceParameter> params)
methodReference
in class LLJavaGrammar3
protected LLJava.Invoke invokeInstruction(MessageReceiver<? super SimpleMessage<SourceId>> msgs, Location<SourceId> location, java.lang.Void dummy, java.util.List<LLJava.ModifierExpr> modifiers, LLJava.MethodReference ref)
invokeInstruction
in class LLJavaGrammar3
protected LLJava.Condition condition(MessageReceiver<? super SimpleMessage<SourceId>> msgs, Location<SourceId> location, LLJavaLexer3.TokenType operator, LLJava.LoadArgument operand)
condition
in class LLJavaGrammar3
protected LLJava.If ifInstruction(MessageReceiver<? super SimpleMessage<SourceId>> msgs, Location<SourceId> location, boolean negative, LLJava.Condition condition, LLJava.CodeRef target)
ifInstruction
in class LLJavaGrammar3
protected LLJava.Case switchCase(MessageReceiver<? super SimpleMessage<SourceId>> msgs, Location<SourceId> location, java.util.List<java.util.Optional<LLJava.IntLiteral>> labels, LLJava.CodeRef target)
switchCase
in class LLJavaGrammar3
protected LLJava.Switch switchInstruction(MessageReceiver<? super SimpleMessage<SourceId>> msgs, Location<SourceId> location, java.util.List<LLJava.Case> cases)
switchInstruction
in class LLJavaGrammar3
protected LLJava.Cast castInstruction(MessageReceiver<? super SimpleMessage<SourceId>> msgs, Location<SourceId> location, LLJava.TypeExpr type)
castInstruction
in class LLJavaGrammar3
protected LLJava.Instanceof instanceofInstruction(MessageReceiver<? super SimpleMessage<SourceId>> msgs, Location<SourceId> location, LLJava.TypeExpr type)
instanceofInstruction
in class LLJavaGrammar3
protected LLJava.ReferenceTypeExpr ensureReferenceType(MessageReceiver<? super SimpleMessage<SourceId>> msgs, Location<SourceId> location, LLJava.TypeExpr type)
protected LLJava.New newInstruction(MessageReceiver<? super SimpleMessage<SourceId>> msgs, Location<SourceId> location, LLJava.TypeExpr baseType, java.util.List<LLJava.DimensionExpr> dimensions)
newInstruction
in class LLJavaGrammar3
protected LLJava.GotoInterval gotoInterval(MessageReceiver<? super SimpleMessage<SourceId>> msgs, Location<SourceId> location, LLJava.Name start, java.util.Optional<LLJava.Name> end)
gotoInterval
in class LLJavaGrammar3
protected LLJava.Handler catchHandler(MessageReceiver<? super SimpleMessage<SourceId>> msgs, Location<SourceId> location, java.util.List<LLJava.Label> prefixLabels, java.util.Optional<LLJava.ClassReference> type, java.util.List<LLJava.Label> infixLabels, LLJava.CodeRef body)
catchHandler
in class LLJavaGrammar3
protected LLJava.Try tryInstruction(MessageReceiver<? super SimpleMessage<SourceId>> msgs, Location<SourceId> location, LLJava.CodeInterval body, java.util.List<LLJava.Handler> handlers)
tryInstruction
in class LLJavaGrammar3
protected LLJava.Goto gotoInstruction(MessageReceiver<? super SimpleMessage<SourceId>> msgs, Location<SourceId> location, LLJava.GotoRef target)
gotoInstruction
in class LLJavaGrammar3
protected LLJava.Inc incInstruction(MessageReceiver<? super SimpleMessage<SourceId>> msgs, Location<SourceId> location, LLJava.VariableRef target, int increment)
incInstruction
in class LLJavaGrammar3
protected LLJava.Cmp cmpInstruction(MessageReceiver<? super SimpleMessage<SourceId>> msgs, Location<SourceId> location, java.util.Optional<java.lang.Boolean> greater)
cmpInstruction
in class LLJavaGrammar3
protected LLJava.Instruction simpleInstruction(MessageReceiver<? super SimpleMessage<SourceId>> msgs, Location<SourceId> location, LLJavaLexer3.TokenType type)
simpleInstruction
in class LLJavaGrammar3
protected LLJava.Instruction simpleInstruction(LLJavaLexer3.TokenType type)
protected LLJava.Block block(MessageReceiver<? super SimpleMessage<SourceId>> msgs, Location<SourceId> location, java.util.List<LLJava.Statement> statements)
block
in class LLJavaGrammar3
protected LLJava.CodeMethodBody codeMethodBody(MessageReceiver<? super SimpleMessage<SourceId>> msgs, Location<SourceId> location, LLJava.Block block)
codeMethodBody
in class LLJavaGrammar3
protected LLJava.QualId qualId(MessageReceiver<? super SimpleMessage<SourceId>> msgs, Location<SourceId> location, java.util.List<LLJava.Id> parts)
qualId
in class LLJavaGrammar3
protected LLJava.DimensionExpr dimensionExpr(MessageReceiver<? super SimpleMessage<SourceId>> msgs, Location<SourceId> location, java.util.List<LLJava.Annotation> annotations, boolean specified)
dimensionExpr
in class LLJavaGrammar3
protected LLJava.TypeExpr type(MessageReceiver<? super SimpleMessage<SourceId>> msgs, Location<SourceId> location, LLJava.TypeExpr base, java.util.List<LLJava.DimensionExpr> dimensions)
type
in class LLJavaGrammar3
protected LLJava.TypeParameter typeParameter(MessageReceiver<? super SimpleMessage<SourceId>> msgs, Location<SourceId> location, java.util.List<LLJava.Annotation> annotations, LLJava.Id name, java.util.Optional<LLJava.UpperTypeBound> bound)
typeParameter
in class LLJavaGrammar3
protected LLJava.Annotation annotation(MessageReceiver<? super SimpleMessage<SourceId>> msgs, Location<SourceId> location, LLJava.QualId name, java.util.List<java.util.Map.Entry<LLJava.Id,LLJava.AnnotationValue>> elems)
annotation
in class LLJavaGrammar3
protected LLJava.ClassTypeExpr classType(MessageReceiver<? super SimpleMessage<SourceId>> msgs, Location<SourceId> location, LLJava.QualId name, java.util.List<LLJava.TypeArgument> arguments)
classType
in class LLJavaGrammar3
protected LLJava.Parameter methodParameter(MessageReceiver<? super SimpleMessage<SourceId>> msgs, Location<SourceId> location, java.util.List<LLJava.ModifierExpr> modifiers, LLJava.TypeExpr type, java.util.Optional<LLJava.Id> name)
methodParameter
in class LLJavaGrammar3
protected LLJava.Class classDefinition(MessageReceiver<? super SimpleMessage<SourceId>> msgs, Location<SourceId> location, java.util.List<LLJava.ModifierExpr> modifiers, LLJava.QualId name, java.util.List<LLJava.TypeParameter> typeParameters, LLJava.ClassReference superclass, java.util.List<LLJava.ClassReference> interfaces, java.util.List<LLJava.Member> members)
classDefinition
in class LLJavaGrammar3
protected LLJava.Field fieldDefinition(MessageReceiver<? super SimpleMessage<SourceId>> msgs, Location<SourceId> location, java.util.List<LLJava.ModifierExpr> modifiers, LLJava.TypeExpr type, LLJava.Id name, java.util.Optional<LLJava.Literal> initializer)
fieldDefinition
in class LLJavaGrammar3
protected LLJava.Method methodDefinition(MessageReceiver<? super SimpleMessage<SourceId>> msgs, Location<SourceId> location, java.util.List<LLJava.ModifierExpr> modifiers, java.util.List<LLJava.TypeParameter> typeParameters, LLJava.ResultExpr returnType, LLJava.Id name, java.util.List<LLJava.Parameter> parameters, java.util.List<LLJava.ClassReference> exceptions, LLJava.MethodBody body)
methodDefinition
in class LLJavaGrammar3
protected LLJava.IntLiteral intLiteral(MessageReceiver<? super SimpleMessage<SourceId>> msgs, Location<SourceId> location, java.lang.String text)
intLiteral
in class LLJavaGrammar3
protected LLJava.LongLiteral longLiteral(MessageReceiver<? super SimpleMessage<SourceId>> msgs, Location<SourceId> location, java.lang.String text)
longLiteral
in class LLJavaGrammar3
protected LLJava.FloatLiteral floatLiteral(MessageReceiver<? super SimpleMessage<SourceId>> msgs, Location<SourceId> location, java.lang.String text)
floatLiteral
in class LLJavaGrammar3
protected LLJava.DoubleLiteral doubleLiteral(MessageReceiver<? super SimpleMessage<SourceId>> msgs, Location<SourceId> location, java.lang.String text)
doubleLiteral
in class LLJavaGrammar3
protected LLJava.CharLiteral charLiteral(MessageReceiver<? super SimpleMessage<SourceId>> msgs, Location<SourceId> location, java.lang.String text)
charLiteral
in class LLJavaGrammar3
protected LLJava.StringLiteral stringLiteral(MessageReceiver<? super SimpleMessage<SourceId>> msgs, Location<SourceId> location, java.util.List<java.lang.String> text)
stringLiteral
in class LLJavaGrammar3
protected LLJava.MethodHandleExpr methodHandle(MessageReceiver<? super SimpleMessage<SourceId>> msgs, Location<SourceId> location, LLJava.MethodHandleTarget target)
methodHandle
in class LLJavaGrammar3
protected LLJava.MethodTypeExpr methodType(MessageReceiver<? super SimpleMessage<SourceId>> msgs, Location<SourceId> location, LLJava.ResultExpr returnType, java.util.List<LLJava.TypeExpr> parameters)
methodType
in class LLJavaGrammar3
protected LLJava.DynamicExpr dynamicReference(MessageReceiver<? super SimpleMessage<SourceId>> msgs, Location<SourceId> location, LLJava.TypeExpr type, LLJava.MemberDynamicName fullName)
dynamicReference
in class LLJavaGrammar3
protected LLJava.Id id(MessageReceiver<? super SimpleMessage<SourceId>> msgs, Location<SourceId> location, java.lang.String text)
id
in class LLJavaGrammar3
public static void main(java.lang.String[] args) throws java.io.FileNotFoundException
java.io.FileNotFoundException
see also the complete user documentation .