Lombok - v0.10.8

lombok.eclipse
Class EclipseNode

java.lang.Object
  extended by lombok.core.LombokNode<EclipseAST,EclipseNode,org.eclipse.jdt.internal.compiler.ast.ASTNode>
      extended by lombok.eclipse.EclipseNode
All Implemented Interfaces:
DiagnosticsReceiver

public class EclipseNode
extends LombokNode<EclipseAST,EclipseNode,org.eclipse.jdt.internal.compiler.ast.ASTNode>

Eclipse 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
 
Method Summary
 void addError(String message)
          Generate a compiler error on this node.
 void addError(String message, int sourceStart, int sourceEnd)
          Generate a compiler error that shows the wavy underline from-to the stated character positions.
 void addWarning(String message)
          Generate a compiler warning on this node.
 void addWarning(String message, int sourceStart, int sourceEnd)
          Generate a compiler warning that shows the wavy underline from-to the stated character positions.
protected  boolean calculateIsStructurallySignificant(org.eclipse.jdt.internal.compiler.ast.ASTNode parent)
          See LombokNode.isStructurallySignificant.
protected  boolean fieldContainsAnnotation(org.eclipse.jdt.internal.compiler.ast.ASTNode field, org.eclipse.jdt.internal.compiler.ast.ASTNode annotation)
          Return true if the annotation is attached to the field.
 String getName()
          Return the name of your type (simple name), method, field, or local variable.
 boolean isCompleteParse()
          Convenient shortcut to the owning EclipseAST object's isCompleteParse method.
 void traverse(EclipseASTVisitor 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
 

Method Detail

traverse

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


fieldContainsAnnotation

protected boolean fieldContainsAnnotation(org.eclipse.jdt.internal.compiler.ast.ASTNode field,
                                          org.eclipse.jdt.internal.compiler.ast.ASTNode annotation)
Description copied from class: LombokNode
Return true if the annotation is attached to the field.

Specified by:
fieldContainsAnnotation in class LombokNode<EclipseAST,EclipseNode,org.eclipse.jdt.internal.compiler.ast.ASTNode>

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<EclipseAST,EclipseNode,org.eclipse.jdt.internal.compiler.ast.ASTNode>

addError

public void addError(String message)
Generate a compiler error on this node.


addError

public void addError(String message,
                     int sourceStart,
                     int sourceEnd)
Generate a compiler error that shows the wavy underline from-to the stated character positions.


addWarning

public void addWarning(String message)
Generate a compiler warning on this node.


addWarning

public void addWarning(String message,
                       int sourceStart,
                       int sourceEnd)
Generate a compiler warning that shows the wavy underline from-to the stated character positions.


calculateIsStructurallySignificant

protected boolean calculateIsStructurallySignificant(org.eclipse.jdt.internal.compiler.ast.ASTNode parent)
See LombokNode.isStructurallySignificant.

Specified by:
calculateIsStructurallySignificant in class LombokNode<EclipseAST,EclipseNode,org.eclipse.jdt.internal.compiler.ast.ASTNode>

isCompleteParse

public boolean isCompleteParse()
Convenient shortcut to the owning EclipseAST object's isCompleteParse method.

See Also:
EclipseAST.isCompleteParse()

Lombok - v0.10.8

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