Lombok - v0.10.8

lombok.javac
Class JavacNode

java.lang.Object
  extended by lombok.core.LombokNode<JavacAST,JavacNode,com.sun.tools.javac.tree.JCTree>
      extended by lombok.javac.JavacNode
All Implemented Interfaces:
DiagnosticsReceiver

public class JavacNode
extends LombokNode<JavacAST,JavacNode,com.sun.tools.javac.tree.JCTree>

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

JavacNode

public JavacNode(JavacAST ast,
                 com.sun.tools.javac.tree.JCTree node,
                 List<JavacNode> children,
                 AST.Kind kind)
Passes through to the parent constructor.

Method Detail

traverse

public void traverse(JavacASTVisitor visitor)
Visits this node and all child nodes depth-first, calling the provided visitor's visit methods.


getName

public String getName()
Return the name of your type (simple name), method, field, or local variable. Return null if this node doesn't really have a name, such as initializers, while statements, etc.

Specified by:
getName in class LombokNode<JavacAST,JavacNode,com.sun.tools.javac.tree.JCTree>

calculateIsStructurallySignificant

protected boolean calculateIsStructurallySignificant(com.sun.tools.javac.tree.JCTree parent)
See LombokNode.isStructurallySignificant.

Specified by:
calculateIsStructurallySignificant in class LombokNode<JavacAST,JavacNode,com.sun.tools.javac.tree.JCTree>

fieldContainsAnnotation

protected boolean fieldContainsAnnotation(com.sun.tools.javac.tree.JCTree field,
                                          com.sun.tools.javac.tree.JCTree annotation)
Description copied from class: LombokNode
Return true if the annotation is attached to the field.

Specified by:
fieldContainsAnnotation in class LombokNode<JavacAST,JavacNode,com.sun.tools.javac.tree.JCTree>

getTreeMaker

public com.sun.tools.javac.tree.TreeMaker getTreeMaker()
Convenient shortcut to the owning JavacAST object's getTreeMaker method.

See Also:
JavacAST.getTreeMaker()

getSymbolTable

public com.sun.tools.javac.code.Symtab getSymbolTable()
Convenient shortcut to the owning JavacAST object's getSymbolTable method.

See Also:
JavacAST.getSymbolTable()

getTypesUtil

public com.sun.tools.javac.model.JavacTypes getTypesUtil()
Convenient shortcut to the owning JavacAST object's getTypesUtil method.

See Also:
JavacAST.getTypesUtil()

getContext

public com.sun.tools.javac.util.Context getContext()
Convenient shortcut to the owning JavacAST object's getContext method.

See Also:
JavacAST.getContext()

shouldDeleteLombokAnnotations

public boolean shouldDeleteLombokAnnotations()

toName

public com.sun.tools.javac.util.Name toName(String name)
Convenient shortcut to the owning JavacAST object's toName method.

See Also:
JavacAST.toName(String)

addError

public void addError(String message)
Generates an compiler error focused on the AST node represented by this node object.


addError

public 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.


addWarning

public void addWarning(String message)
Generates a compiler warning focused on the AST node represented by this node object.


addWarning

public 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.


Lombok - v0.10.8

Copyright © 2009-2011 The Project Lombok Authors, licensed under the MIT licence.