public interface IJavaParser
Modifier and Type | Method and Description |
---|---|
Location.Handle |
createLocationHandle(JavaContext context,
lombok.ast.Node node)
Creates a light-weight handle to a location for the given node.
|
void |
dispose(JavaContext context,
lombok.ast.Node compilationUnit)
Dispose any data structures held for the given context.
|
Location |
getLocation(JavaContext context,
lombok.ast.Node node)
Returns a
Location for the given node |
lombok.ast.TypeReference |
getType(JavaContext context,
lombok.ast.Node node)
Gets the type of the given node
|
lombok.ast.Node |
parseJava(JavaContext context)
Parse the file pointed to by the given context.
|
lombok.ast.Node |
resolve(JavaContext context,
lombok.ast.Node node)
Resolves the given expression node
|
@Nullable lombok.ast.Node parseJava(@NonNull JavaContext context)
context
- the context pointing to the file to be parsed, typically
via Context.getContents()
but the file handle (
Context.file
can also be used to map to an existing
editor buffer in the surrounding tool, etc)@NonNull Location getLocation(@NonNull JavaContext context, @NonNull lombok.ast.Node node)
Location
for the given nodecontext
- information about the file being parsednode
- the node to create a location for@NonNull Location.Handle createLocationHandle(@NonNull JavaContext context, @NonNull lombok.ast.Node node)
Location.Handle.resolve()
.context
- the context providing the nodenode
- the node (element or attribute) to create a location handle
forvoid dispose(@NonNull JavaContext context, @NonNull lombok.ast.Node compilationUnit)
context
- information about the file previously parsedcompilationUnit
- the compilation unit being disposed@Nullable lombok.ast.Node resolve(@NonNull JavaContext context, @NonNull lombok.ast.Node node)
context
- information about the file being parsednode
- the node to resolve@Nullable lombok.ast.TypeReference getType(@NonNull JavaContext context, @NonNull lombok.ast.Node node)
context
- information about the file being parsednode
- the node to look up the type for