public class JavacNode extends LombokNode<JavacAST,JavacNode,JCTree>
ast, children, isStructurallySignificant, kind, node, parent
CONSOLE
Constructor and Description |
---|
JavacNode(JavacAST ast,
JCTree node,
List<JavacNode> children,
AST.Kind kind)
Passes through to the parent constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addError(String message)
Generates an compiler error focused on the AST node represented by this node object.
|
void |
addError(String message,
DiagnosticPosition pos)
Generates an compiler error focused on the AST node represented by this node object.
|
void |
addWarning(String message)
Generates a compiler warning focused on the AST node represented by this node object.
|
void |
addWarning(String message,
DiagnosticPosition pos)
Generates a compiler warning focused on the AST node represented by this node object.
|
protected boolean |
calculateIsStructurallySignificant(JCTree parent)
|
protected boolean |
fieldContainsAnnotation(JCTree field,
JCTree annotation)
Return
true if the annotation is attached to the field. |
Context |
getContext()
Convenient shortcut to the owning JavacAST object's getContext method.
|
int |
getEndPosition() |
int |
getEndPosition(DiagnosticPosition pos) |
String |
getName()
Return the name of your type (simple name), method, field, or local variable.
|
Symtab |
getSymbolTable()
Convenient shortcut to the owning JavacAST object's getSymbolTable method.
|
lombok.javac.JavacTreeMaker |
getTreeMaker()
Convenient shortcut to the owning JavacAST object's getTreeMaker method.
|
JavacTypes |
getTypesUtil()
Convenient shortcut to the owning JavacAST object's getTypesUtil method.
|
void |
removeDeferredErrors() |
boolean |
shouldDeleteLombokAnnotations() |
Name |
toName(String name)
Convenient shortcut to the owning JavacAST object's toName method.
|
void |
traverse(JavacASTVisitor visitor)
Visits this node and all child nodes depth-first, calling the provided visitor's visit methods.
|
add, directUp, down, get, getAst, getFileName, getImportList, getKind, getLatestJavaSpecSupported, getNodeFor, getPackageDeclaration, getSourceVersion, isStructurallySignificant, rebuild, removeChild, top, toString, up, upFromAnnotationToFields
public int getEndPosition(DiagnosticPosition pos)
public int getEndPosition()
public void traverse(JavacASTVisitor visitor)
public String getName()
getName
in class LombokNode<JavacAST,JavacNode,JCTree>
protected boolean calculateIsStructurallySignificant(JCTree parent)
calculateIsStructurallySignificant
in class LombokNode<JavacAST,JavacNode,JCTree>
protected boolean fieldContainsAnnotation(JCTree field, JCTree annotation)
LombokNode
true
if the annotation is attached to the field.fieldContainsAnnotation
in class LombokNode<JavacAST,JavacNode,JCTree>
public lombok.javac.JavacTreeMaker getTreeMaker()
JavacAST.getTreeMaker()
public Symtab getSymbolTable()
JavacAST.getSymbolTable()
public JavacTypes getTypesUtil()
JavacAST.getTypesUtil()
public Context getContext()
JavacAST.getContext()
public boolean shouldDeleteLombokAnnotations()
public Name toName(String name)
JavacAST.toName(String)
public void removeDeferredErrors()
public void addError(String message)
public void addError(String message, DiagnosticPosition pos)
public void addWarning(String message)
public void addWarning(String message, DiagnosticPosition pos)
Copyright © 2009-2015 The Project Lombok Authors, licensed under the MIT licence.