public abstract class Attribute extends ASTNode<ASTNode> implements java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
protected boolean |
trim_computed |
protected java.lang.String |
trim_value |
protected int |
trim_visited |
findDecl_String_visited, generatedWithCacheCycle, generatedWithCircularEnabled, generatedWithComponentCheck, getSubClasses_OwlClassDecl_ArrayList_visited, getSuperClass_String_visited, goStart_visited, in$Circle, is$Final, numChildren, state
children, id, parent, parser
Constructor and Description |
---|
Attribute() |
Attribute(int i) |
Attribute(OwlParser p,
int i) |
Attribute(Value p0) |
Modifier and Type | Method and Description |
---|---|
void |
checkChild(Node n,
int i) |
Attribute |
clone() |
void |
dumpTree(java.lang.String indent,
java.io.PrintStream out) |
void |
flushAttrCache() |
void |
flushCollectionCache() |
void |
flushRewriteCache() |
abstract Attribute |
fullCopy()
Deprecated.
Please use emitTreeCopy or emitTreeCopyNoTransform instead
|
int |
getNumChild() |
Value |
getValue()
Retrieves the Value child.
|
Value |
getValueNoTransform()
Retrieves the Value child.
|
void |
init$Children()
Initializes the child array to the correct size.
|
java.lang.Object |
jjtAccept(OwlParserVisitor visitor,
java.lang.Object data)
Accept the visitor.
|
void |
jjtAddChild(Node n,
int i)
This method tells the node to add its argument to the node's
list of children.
|
boolean |
mayHaveRewrite() |
ASTNode |
rewriteTo() |
void |
setValue(Value node)
Replaces the Value child.
|
abstract Attribute |
treeCopy()
Create a deep copy of the AST subtree at this node.
|
abstract Attribute |
treeCopyNoTransform()
Create a deep copy of the AST subtree at this node.
|
java.lang.String |
trim() |
addChild, copy, doFullTraversal, duringRewriteClasses, findDecl, flushCache, flushTreeCache, genMisc, genPrettyPrinter, genRewrites, getChild, getChildNoTransform, getIndexOfChild, getNumChildNoTransform, getParent, getSubClasses, getSuperClass, goStart, grammarName, in$Circle, in$Circle, ind, insertChild, is$Equal, is$Equal, is$Final, is$Final, iterator, numChildren, removeChild, setChild, setGrammarName, setParent, state
childrenAccept, dump, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, toString, toString
protected int trim_visited
protected boolean trim_computed
protected java.lang.String trim_value
public Attribute(int i)
public Attribute(OwlParser p, int i)
public Attribute()
public Attribute(Value p0)
public void init$Children()
init$Children
in class ASTNode<ASTNode>
public void dumpTree(java.lang.String indent, java.io.PrintStream out)
public java.lang.Object jjtAccept(OwlParserVisitor visitor, java.lang.Object data)
SimpleNode
public void jjtAddChild(Node n, int i)
Node
jjtAddChild
in interface Node
jjtAddChild
in class ASTNode<ASTNode>
public void checkChild(Node n, int i)
checkChild
in class ASTNode<ASTNode>
public int getNumChild()
getNumChild
in class ASTNode<ASTNode>
public boolean mayHaveRewrite()
mayHaveRewrite
in class ASTNode<ASTNode>
public void flushAttrCache()
flushAttrCache
in class ASTNode<ASTNode>
public void flushCollectionCache()
flushCollectionCache
in class ASTNode<ASTNode>
public void flushRewriteCache()
flushRewriteCache
in class ASTNode<ASTNode>
public Attribute clone() throws java.lang.CloneNotSupportedException
public abstract Attribute fullCopy()
public abstract Attribute treeCopyNoTransform()
treeCopyNoTransform
in class ASTNode<ASTNode>
public abstract Attribute treeCopy()
public void setValue(Value node)
node
- The new node to replace the Value child.@ASTNodeAnnotation.Child(name="Value") public Value getValue()
public Value getValueNoTransform()
This method does not invoke AST transformations.
@ASTNodeAnnotation.Attribute public java.lang.String trim()