public class JavacNode extends LombokNode<JavacAST,JavacNode,com.sun.tools.javac.tree.JCTree>
ast, children, isStructurallySignificant, kind, node, parentCONSOLE| Constructor and Description |
|---|
JavacNode(JavacAST ast,
com.sun.tools.javac.tree.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,
com.sun.tools.javac.util.JCDiagnostic.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,
com.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition pos)
Generates a compiler warning focused on the AST node represented by this node object.
|
protected boolean |
calculateIsStructurallySignificant(com.sun.tools.javac.tree.JCTree parent)
|
protected boolean |
fieldContainsAnnotation(com.sun.tools.javac.tree.JCTree field,
com.sun.tools.javac.tree.JCTree annotation)
Return
true if the annotation is attached to the field. |
com.sun.tools.javac.util.Context |
getContext()
Convenient shortcut to the owning JavacAST object's getContext method.
|
int |
getEndPosition() |
int |
getEndPosition(com.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition pos) |
String |
getName()
Return the name of your type (simple name), method, field, or local variable.
|
com.sun.tools.javac.code.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.
|
com.sun.tools.javac.model.JavacTypes |
getTypesUtil()
Convenient shortcut to the owning JavacAST object's getTypesUtil method.
|
void |
removeDeferredErrors() |
boolean |
shouldDeleteLombokAnnotations() |
com.sun.tools.javac.util.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, upFromAnnotationToFieldspublic int getEndPosition(com.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition pos)
public int getEndPosition()
public void traverse(JavacASTVisitor visitor)
public String getName()
getName in class LombokNode<JavacAST,JavacNode,com.sun.tools.javac.tree.JCTree>protected boolean calculateIsStructurallySignificant(com.sun.tools.javac.tree.JCTree parent)
calculateIsStructurallySignificant in class LombokNode<JavacAST,JavacNode,com.sun.tools.javac.tree.JCTree>protected boolean fieldContainsAnnotation(com.sun.tools.javac.tree.JCTree field,
com.sun.tools.javac.tree.JCTree annotation)
LombokNodetrue if the annotation is attached to the field.fieldContainsAnnotation in class LombokNode<JavacAST,JavacNode,com.sun.tools.javac.tree.JCTree>public lombok.javac.JavacTreeMaker getTreeMaker()
JavacAST.getTreeMaker()public com.sun.tools.javac.code.Symtab getSymbolTable()
JavacAST.getSymbolTable()public com.sun.tools.javac.model.JavacTypes getTypesUtil()
JavacAST.getTypesUtil()public com.sun.tools.javac.util.Context getContext()
JavacAST.getContext()public boolean shouldDeleteLombokAnnotations()
public com.sun.tools.javac.util.Name toName(String name)
JavacAST.toName(String)public void removeDeferredErrors()
public void addError(String message)
public void addError(String message, com.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition pos)
public void addWarning(String message)
public void addWarning(String message, com.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition pos)
Copyright © 2009-2014 The Project Lombok Authors, licensed under the MIT licence.