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.
|
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.
|
com.sun.tools.javac.tree.TreeMaker |
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.
|
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, getImportStatements, getKind, getNodeFor, getPackageDeclaration, isStructurallySignificant, rebuild, removeChild, replaceChildNode, replaceWith, top, toString, up, upFromAnnotationToFieldspublic 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 com.sun.tools.javac.tree.TreeMaker 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 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-2011 The Project Lombok Authors, licensed under the MIT licence.