org.extendj.ast
node type Opt<T extends ASTNode>

General Info

Production
Opt : ASTNode;
Type Hierarchy:
java.lang.Object
  extended by beaver.Symbol
      extended by org.extendj.ast.ASTNode<T>
          extended by org.extendj.ast.Opt<T>
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Iterable<T>, org.jastadd.util.PrettyPrintable

Description

Member Filters

API level:

Aspect:

Constructors

public Opt()
 
Source
Declared in /home/jesper/git/extendj/ASTNode at line 1
public Opt(T opt)
 
Source
Declared in /home/jesper/git/extendj/ASTNode at line 12

Methods

public void prettyPrint(org.jastadd.util.PrettyPrinter out)
Pretty-print Opt nodes only if they are not empty.
Specified by:prettyPrint in interface org.jastadd.util.PrettyPrintableOverrides:prettyPrint in class ASTNode<T extends ASTNode>
Source
Declared in /home/jesper/git/extendj/java4/frontend/PrettyPrintUtil.jrag at line 66
Aspect
PrettyPrintUtil
public void init$Children()
Initializes the child array to the correct size. Initializes List and Opt nta children.
Overrides:init$Children in class ASTNode<T extends ASTNode>
Source
Declared in /home/jesper/git/extendj/ASTNode at line 10
public boolean mayHaveRewrite()
Overrides:mayHaveRewrite in class ASTNode<T extends ASTNode>
Source
Declared in /home/jesper/git/extendj/ASTNode at line 18
public void flushAttrCache()
Overrides:flushAttrCache in class ASTNode<T extends ASTNode>
Source
Declared in /home/jesper/git/extendj/ASTNode at line 24
public void flushCollectionCache()
Overrides:flushCollectionCache in class ASTNode<T extends ASTNode>
Source
Declared in /home/jesper/git/extendj/ASTNode at line 30
public void flushRewriteCache()
Overrides:flushRewriteCache in class ASTNode<T extends ASTNode>
Source
Declared in /home/jesper/git/extendj/ASTNode at line 36
public Opt<T> clone()
                             throws java.lang.CloneNotSupportedException
Overrides:clone in class ASTNode<T extends ASTNode>
Throws:
java.lang.CloneNotSupportedException
Source
Declared in /home/jesper/git/extendj/ASTNode at line 42
public Opt<T> copy()
Overrides:copy in class ASTNode<T extends ASTNode>
Source
Declared in /home/jesper/git/extendj/ASTNode at line 49
@Deprecated
public Opt<T> fullCopy()
Deprecated. Please use treeCopy or treeCopyNoTransform instead

Create a deep copy of the AST subtree at this node. The copy is dangling, i.e. has no parent.

Overrides:fullCopy in class ASTNode<T extends ASTNode>
Returns:
dangling copy of the subtree at this node
Source
Declared in /home/jesper/git/extendj/ASTNode at line 68
public Opt<T> treeCopyNoTransform()
Create a deep copy of the AST subtree at this node. The copy is dangling, i.e. has no parent.
Overrides:treeCopyNoTransform in class ASTNode<T extends ASTNode>
Returns:
dangling copy of the subtree at this node
Source
Declared in /home/jesper/git/extendj/ASTNode at line 78
public Opt<T> treeCopy()
Create a deep copy of the AST subtree at this node. The subtree of this node is traversed to trigger rewrites before copy. The copy is dangling, i.e. has no parent.
Overrides:treeCopy in class ASTNode<T extends ASTNode>
Returns:
dangling copy of the subtree at this node
Source
Declared in /home/jesper/git/extendj/ASTNode at line 98
protected boolean is$Equal(ASTNode node)
Overrides:is$Equal in class ASTNode<T extends ASTNode>
Source
Declared in /home/jesper/git/extendj/ASTNode at line 105
Overrides:rewriteTo in class ASTNode<T extends ASTNode>

Inherited Members

Attributes inherited from org.extendj.ast.ASTNode

Methods inherited from class org.extendj.ast.ASTNode

Methods inherited from class beaver.Symbol

getColumn
getEnd
getId
getLine
getStart
makePosition

Methods inherited from class java.lang.Object

equals
finalize
getClass
hashCode
notify
notifyAll
wait
wait
wait

Fields inherited from org.extendj.ast.ASTNode

Fields inherited from beaver.Symbol

end
id
start
value