|
Lombok - v0.10.8 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlombok.core.LombokNode<JavacAST,JavacNode,com.sun.tools.javac.tree.JCTree>
lombok.javac.JavacNode
public class JavacNode
Javac specific version of the LombokNode class.
| Field Summary |
|---|
| Fields inherited from class lombok.core.LombokNode |
|---|
ast, children, isStructurallySignificant, kind, node, parent |
| Fields inherited from interface lombok.core.DiagnosticsReceiver |
|---|
CONSOLE |
| Constructor Summary | |
|---|---|
JavacNode(JavacAST ast,
com.sun.tools.javac.tree.JCTree node,
List<JavacNode> children,
AST.Kind kind)
Passes through to the parent constructor. |
|
| Method Summary | |
|---|---|
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)
See LombokNode.isStructurallySignificant. |
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. |
| Methods inherited from class lombok.core.LombokNode |
|---|
add, directUp, down, get, getAst, getFileName, getImportStatements, getKind, getNodeFor, getPackageDeclaration, isStructurallySignificant, rebuild, removeChild, replaceChildNode, replaceWith, top, toString, up, upFromAnnotationToFields |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JavacNode(JavacAST ast,
com.sun.tools.javac.tree.JCTree node,
List<JavacNode> children,
AST.Kind kind)
| Method Detail |
|---|
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)
LombokNode.isStructurallySignificant.
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)
|
Lombok - v0.10.8 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||