public abstract class ComplexElement extends Element implements java.lang.Cloneable
isDataProperty, isObjectProperty
Modifier and Type | Field and Description |
---|---|
protected int |
clazz_visited |
protected java.util.Map |
findDecl_String_visited |
protected boolean |
getId_computed |
protected java.lang.String |
getId_value |
protected int |
getId_visited |
protected java.util.Map |
getSuperClass_String_visited |
protected int |
iri_visited |
isClass_visited, isDataProperty_visited, isIndividual_visited, isObjectProperty_visited, name_visited, range_computed, range_value, range_visited, type_computed, type_value, type_visited
generatedWithCacheCycle, generatedWithCircularEnabled, generatedWithComponentCheck, getSubClasses_OwlClassDecl_ArrayList_visited, goStart_visited, in$Circle, is$Final, numChildren, state
children, id, parent, parser
Constructor and Description |
---|
ComplexElement() |
ComplexElement(int i) |
ComplexElement(List<Attribute> p0,
List<Element> p1) |
ComplexElement(OwlParser p,
int i) |
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(Attribute node)
Append an element to the Attribute list.
|
void |
addAttributeNoTransform(Attribute node) |
void |
addElement(Element node)
Append an element to the Element list.
|
void |
addElementNoTransform(Element node) |
void |
checkChild(Node n,
int i) |
Clazz |
clazz() |
ComplexElement |
clone() |
void |
dumpTree(java.lang.String indent,
java.io.PrintStream out) |
Declaration |
findDecl(java.lang.String name) |
void |
flushAttrCache() |
void |
flushCollectionCache() |
void |
flushRewriteCache() |
abstract ComplexElement |
fullCopy()
Deprecated.
Please use emitTreeCopy or emitTreeCopyNoTransform instead
|
Attribute |
getAttribute(int i)
Retrieves the element at index
i in the Attribute list. |
List<Attribute> |
getAttributeList()
Retrieves the Attribute list.
|
List<Attribute> |
getAttributeListNoTransform()
Retrieves the Attribute list.
|
List<Attribute> |
getAttributes()
Retrieves the Attribute list.
|
List<Attribute> |
getAttributesNoTransform()
Retrieves the Attribute list.
|
Element |
getElement(int i)
Retrieves the element at index
i in the Element list. |
List<Element> |
getElementList()
Retrieves the Element list.
|
List<Element> |
getElementListNoTransform()
Retrieves the Element list.
|
List<Element> |
getElements()
Retrieves the Element list.
|
List<Element> |
getElementsNoTransform()
Retrieves the Element list.
|
java.lang.String |
getId() |
int |
getNumAttribute()
Retrieves the number of children in the Attribute list.
|
int |
getNumAttributeNoTransform()
Retrieves the number of children in the Attribute list.
|
int |
getNumChild() |
int |
getNumElement()
Retrieves the number of children in the Element list.
|
int |
getNumElementNoTransform()
Retrieves the number of children in the Element list.
|
Declaration |
getSuperClass(java.lang.String name) |
boolean |
hasAttribute()
Check whether the Attribute list has any children.
|
boolean |
hasElement()
Check whether the Element list has any children.
|
void |
init$Children()
Initializes the child array to the correct size.
|
Attribute |
iri() |
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 |
setAttribute(Attribute node,
int i)
Replaces the Attribute list element at index
i with the new node node . |
void |
setAttributeList(List<Attribute> list)
Replaces the Attribute list.
|
void |
setElement(Element node,
int i)
Replaces the Element list element at index
i with the new node node . |
void |
setElementList(List<Element> list)
Replaces the Element list.
|
abstract ComplexElement |
treeCopy()
Create a deep copy of the AST subtree at this node.
|
abstract ComplexElement |
treeCopyNoTransform()
Create a deep copy of the AST subtree at this node.
|
isClass, isDataProperty, isIndividual, isObjectProperty, name, range, type
addChild, copy, doFullTraversal, duringRewriteClasses, flushCache, flushTreeCache, genMisc, genPrettyPrinter, genRewrites, getChild, getChildNoTransform, getIndexOfChild, getNumChildNoTransform, getParent, getSubClasses, 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 iri_visited
protected int getId_visited
protected boolean getId_computed
protected java.lang.String getId_value
protected int clazz_visited
protected java.util.Map getSuperClass_String_visited
protected java.util.Map findDecl_String_visited
public ComplexElement(int i)
public ComplexElement(OwlParser p, int i)
public ComplexElement()
public void init$Children()
init$Children
in class Element
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 Element
public void checkChild(Node n, int i)
checkChild
in class Element
public int getNumChild()
getNumChild
in class Element
public boolean mayHaveRewrite()
mayHaveRewrite
in class Element
public void flushAttrCache()
flushAttrCache
in class Element
public void flushCollectionCache()
flushCollectionCache
in class Element
public void flushRewriteCache()
flushRewriteCache
in class Element
public ComplexElement clone() throws java.lang.CloneNotSupportedException
public abstract ComplexElement fullCopy()
public abstract ComplexElement treeCopyNoTransform()
treeCopyNoTransform
in class Element
public abstract ComplexElement treeCopy()
public void setAttributeList(List<Attribute> list)
list
- The new list node to be used as the Attribute list.public int getNumAttribute()
public int getNumAttributeNoTransform()
public Attribute getAttribute(int i)
i
in the Attribute list.i
- Index of the element to return.i
in the Attribute list.public boolean hasAttribute()
true
if it has at least one child, false
otherwise.public void addAttribute(Attribute node)
node
- The element to append to the Attribute list.public void addAttributeNoTransform(Attribute node)
public void setAttribute(Attribute node, int i)
i
with the new node node
.node
- The new node to replace the old list element.i
- The list index of the node to be replaced.@ASTNodeAnnotation.ListChild(name="Attribute") public List<Attribute> getAttributeList()
public List<Attribute> getAttributeListNoTransform()
This method does not invoke AST transformations.
public List<Attribute> getAttributes()
public List<Attribute> getAttributesNoTransform()
This method does not invoke AST transformations.
public void setElementList(List<Element> list)
list
- The new list node to be used as the Element list.public int getNumElement()
public int getNumElementNoTransform()
public Element getElement(int i)
i
in the Element list.i
- Index of the element to return.i
in the Element list.public boolean hasElement()
true
if it has at least one child, false
otherwise.public void addElement(Element node)
node
- The element to append to the Element list.public void addElementNoTransform(Element node)
public void setElement(Element node, int i)
i
with the new node node
.node
- The new node to replace the old list element.i
- The list index of the node to be replaced.@ASTNodeAnnotation.ListChild(name="Element") public List<Element> getElementList()
public List<Element> getElementListNoTransform()
This method does not invoke AST transformations.
public List<Element> getElements()
public List<Element> getElementsNoTransform()
This method does not invoke AST transformations.
@ASTNodeAnnotation.Attribute public Attribute iri()
@ASTNodeAnnotation.Attribute public java.lang.String getId()
@ASTNodeAnnotation.Attribute public Clazz clazz()
@ASTNodeAnnotation.Attribute public Declaration getSuperClass(java.lang.String name)
getSuperClass
in class ASTNode<ASTNode>
@ASTNodeAnnotation.Attribute public Declaration findDecl(java.lang.String name)