public abstract class OClass extends Declaration implements java.lang.Cloneable
isDataProperty, isObjectProperty| Modifier and Type | Field and Description |
|---|---|
protected int |
name_visited |
protected java.lang.String |
tokenString_Id |
decl_computed, decl_value, decl_visited, getSuperClass_computed, getSuperClass_value, getSuperClass_visited, isClassDecl_visited, isIndividualDecl_visitedclazz_visited, findDecl_String_visited, getId_computed, getId_value, getId_visited, getSuperClass_String_visited, iri_visitedisClass_visited, isDataProperty_visited, isIndividual_visited, isObjectProperty_visited, range_computed, range_value, range_visited, type_computed, type_value, type_visitedgeneratedWithCacheCycle, generatedWithCircularEnabled, generatedWithComponentCheck, getSubClasses_OwlClassDecl_ArrayList_visited, goStart_visited, in$Circle, is$Final, numChildren, statechildren, id, parent, parser| Constructor and Description |
|---|
OClass() |
OClass(int i) |
OClass(List<Attribute> p0,
List<Element> p1,
java.lang.String p2) |
OClass(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) |
OClass |
clone() |
void |
dumpTree(java.lang.String indent,
java.io.PrintStream out) |
void |
flushAttrCache() |
void |
flushCollectionCache() |
void |
flushRewriteCache() |
abstract OClass |
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()
Retrieves the value for the lexeme Id.
|
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.
|
abstract java.util.ArrayList |
getSubClasses() |
abstract Declaration |
getSuperClass() |
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.
|
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() |
java.lang.String |
name() |
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.
|
void |
setId(java.lang.String value)
Replaces the lexeme Id.
|
abstract OClass |
treeCopy()
Create a deep copy of the AST subtree at this node.
|
abstract OClass |
treeCopyNoTransform()
Create a deep copy of the AST subtree at this node.
|
copy, decl, is$Equal, isClassDecl, isIndividualDeclclazz, findDecl, getSuperClass, iriisClass, isDataProperty, isIndividual, isObjectProperty, range, typeaddChild, doFullTraversal, duringRewriteClasses, flushCache, flushTreeCache, genMisc, genPrettyPrinter, genRewrites, getChild, getChildNoTransform, getIndexOfChild, getNumChildNoTransform, getParent, getSubClasses, goStart, grammarName, in$Circle, in$Circle, ind, insertChild, is$Equal, is$Final, is$Final, iterator, numChildren, removeChild, setChild, setGrammarName, setParent, statechildrenAccept, dump, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, toString, toStringprotected java.lang.String tokenString_Id
protected int name_visited
public OClass(int i)
public OClass(OwlParser p, int i)
public OClass()
public void init$Children()
init$Children in class Declarationpublic void dumpTree(java.lang.String indent,
java.io.PrintStream out)
dumpTree in class Declarationpublic java.lang.Object jjtAccept(OwlParserVisitor visitor, java.lang.Object data)
SimpleNodejjtAccept in interface NodejjtAccept in class Declarationpublic void jjtAddChild(Node n, int i)
NodejjtAddChild in interface NodejjtAddChild in class Declarationpublic void checkChild(Node n, int i)
checkChild in class Declarationpublic int getNumChild()
getNumChild in class Declarationpublic boolean mayHaveRewrite()
mayHaveRewrite in class Declarationpublic void flushAttrCache()
flushAttrCache in class Declarationpublic void flushCollectionCache()
flushCollectionCache in class Declarationpublic void flushRewriteCache()
flushRewriteCache in class Declarationpublic OClass clone() throws java.lang.CloneNotSupportedException
clone in class Declarationjava.lang.CloneNotSupportedExceptionpublic abstract OClass fullCopy()
fullCopy in class Declarationpublic abstract OClass treeCopyNoTransform()
treeCopyNoTransform in class Declarationpublic abstract OClass treeCopy()
treeCopy in class Declarationpublic void setAttributeList(List<Attribute> list)
setAttributeList in class Declarationlist - The new list node to be used as the Attribute list.public int getNumAttribute()
getNumAttribute in class Declarationpublic int getNumAttributeNoTransform()
getNumAttributeNoTransform in class Declarationpublic Attribute getAttribute(int i)
i in the Attribute list.getAttribute in class Declarationi - Index of the element to return.i in the Attribute list.public boolean hasAttribute()
hasAttribute in class Declarationtrue if it has at least one child, false otherwise.public void addAttribute(Attribute node)
addAttribute in class Declarationnode - The element to append to the Attribute list.public void addAttributeNoTransform(Attribute node)
addAttributeNoTransform in class Declarationpublic void setAttribute(Attribute node, int i)
i with the new node node.setAttribute in class Declarationnode - 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()
getAttributeList in class Declarationpublic List<Attribute> getAttributeListNoTransform()
This method does not invoke AST transformations.
getAttributeListNoTransform in class Declarationpublic List<Attribute> getAttributes()
getAttributes in class Declarationpublic List<Attribute> getAttributesNoTransform()
This method does not invoke AST transformations.
getAttributesNoTransform in class Declarationpublic void setElementList(List<Element> list)
setElementList in class Declarationlist - The new list node to be used as the Element list.public int getNumElement()
getNumElement in class Declarationpublic int getNumElementNoTransform()
getNumElementNoTransform in class Declarationpublic Element getElement(int i)
i in the Element list.getElement in class Declarationi - Index of the element to return.i in the Element list.public boolean hasElement()
hasElement in class Declarationtrue if it has at least one child, false otherwise.public void addElement(Element node)
addElement in class Declarationnode - The element to append to the Element list.public void addElementNoTransform(Element node)
addElementNoTransform in class Declarationpublic void setElement(Element node, int i)
i with the new node node.setElement in class Declarationnode - 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()
getElementList in class Declarationpublic List<Element> getElementListNoTransform()
This method does not invoke AST transformations.
getElementListNoTransform in class Declarationpublic List<Element> getElements()
getElements in class Declarationpublic List<Element> getElementsNoTransform()
This method does not invoke AST transformations.
getElementsNoTransform in class Declarationpublic void setId(java.lang.String value)
value - The new value for the lexeme Id.@ASTNodeAnnotation.Token(name="Id") public java.lang.String getId()
getId in class ComplexElement@ASTNodeAnnotation.Attribute public abstract Declaration getSuperClass()
getSuperClass in class Declaration@ASTNodeAnnotation.Attribute public abstract java.util.ArrayList getSubClasses()
@ASTNodeAnnotation.Attribute public java.lang.String name()
name in class Declarationpublic ASTNode rewriteTo()
rewriteTo in class Declaration