Package com.github.javaparser
Interface ParseStart<R>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
The start production for JavaParser.
Tells JavaParser what piece of Java code it can expect.
For example,
COMPILATION_UNIT indicates a complete Java file,
and CLASS_BODY would indicate the part of a class that is within { and }.
- See Also:
JavaParser.parse(ParseStart, Provider)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic ParseStart<AnnotationExpr>
static ParseStart<BodyDeclaration<?>>
static ParseStart<BlockStmt>
static ParseStart<BodyDeclaration<?>>
static ParseStart<ClassOrInterfaceType>
static ParseStart<CompilationUnit>
static ParseStart<Expression>
static ParseStart<ImportDeclaration>
static ParseStart<MethodDeclaration>
static ParseStart<ModuleDeclaration>
static ParseStart<ModuleDirective>
static ParseStart<Name>
static ParseStart<PackageDeclaration>
static ParseStart<Parameter>
static ParseStart<SimpleName>
static ParseStart<Statement>
static ParseStart<Type>
static ParseStart<TypeDeclaration<?>>
static ParseStart<TypeParameter>
static ParseStart<VariableDeclarationExpr>
-
Method Summary
-
Field Details
-
COMPILATION_UNIT
-
BLOCK
-
STATEMENT
-
IMPORT_DECLARATION
-
EXPRESSION
-
ANNOTATION
-
ANNOTATION_BODY
-
CLASS_BODY
-
CLASS_OR_INTERFACE_TYPE
-
TYPE
-
TYPE_PARAMETER
-
VARIABLE_DECLARATION_EXPR
-
EXPLICIT_CONSTRUCTOR_INVOCATION_STMT
-
NAME
-
SIMPLE_NAME
-
PARAMETER
-
PACKAGE_DECLARATION
-
TYPE_DECLARATION
-
MODULE_DECLARATION
-
MODULE_DIRECTIVE
-
METHOD_DECLARATION
-
-
Method Details
-
parse
- Throws:
ParseException
-