isDataProperty, isObjectProperty
Modifier and Type | Field and Description |
---|---|
protected boolean |
decl_computed |
protected OwlClassDecl |
decl_value |
protected int |
decl_visited |
protected int |
getNumOwnRestriction_visited |
protected int |
getNumRestriction_visited |
protected boolean |
getOwnRestrictions_computed |
protected Restrictions |
getOwnRestrictions_value |
protected int |
getOwnRestrictions_visited |
protected boolean |
getProperties_computed |
protected Properties |
getProperties_value |
protected int |
getProperties_visited |
protected boolean |
getRestrictions_computed |
protected Restrictions |
getRestrictions_value |
protected int |
getRestrictions_visited |
protected boolean |
getSubClasses_computed |
protected java.util.Map |
getSubClasses_OwlClassDecl_ArrayList_visited |
protected java.util.ArrayList |
getSubClasses_value |
protected int |
getSubClasses_visited |
protected boolean |
getSuperClass_computed |
protected Declaration |
getSuperClass_value |
protected int |
getSuperClass_visited |
protected int |
isClassDecl_visited |
name_visited, tokenString_Id
isIndividualDecl_visited
clazz_visited, findDecl_String_visited, getId_computed, getId_value, getId_visited, getSuperClass_String_visited, iri_visited
isClass_visited, isDataProperty_visited, isIndividual_visited, isObjectProperty_visited, range_computed, range_value, range_visited, type_computed, type_value, type_visited
generatedWithCacheCycle, generatedWithCircularEnabled, generatedWithComponentCheck, goStart_visited, in$Circle, is$Final, numChildren, state
children, id, parent, parser
Constructor and Description |
---|
OwlClassDecl() |
OwlClassDecl(int i) |
OwlClassDecl(List<Attribute> p0,
List<Element> p1,
java.lang.String p2) |
OwlClassDecl(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) |
OwlClassDecl |
clone() |
OwlClassDecl |
copy() |
OwlClassDecl |
decl() |
void |
dumpTree(java.lang.String indent,
java.io.PrintStream out) |
void |
flushAttrCache() |
void |
flushCollectionCache() |
void |
flushRewriteCache() |
OwlClassDecl |
fullCopy()
Deprecated.
Please use emitTreeCopy or emitTreeCopyNoTransform instead
|
void |
genPrettyPrinter(java.io.PrintStream pStream) |
void |
genRewrites(java.io.PrintStream pStream) |
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.
|
int |
getNumOwnRestriction() |
int |
getNumRestriction() |
Restrictions |
getOwnRestrictions() |
Properties |
getProperties() |
Restrictions |
getRestrictions() |
java.util.ArrayList |
getSubClasses() |
java.util.ArrayList |
getSubClasses(OwlClassDecl klass,
java.util.ArrayList l) |
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.
|
protected boolean |
is$Equal(ASTNode node) |
boolean |
isClassDecl() |
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.
|
void |
setId(java.lang.String value)
Replaces the lexeme Id.
|
OwlClassDecl |
treeCopy()
Create a deep copy of the AST subtree at this node.
|
OwlClassDecl |
treeCopyNoTransform()
Create a deep copy of the AST subtree at this node.
|
isIndividualDecl
clazz, findDecl, getSuperClass, iri
isClass, isDataProperty, isIndividual, isObjectProperty, range, type
addChild, doFullTraversal, duringRewriteClasses, flushCache, flushTreeCache, genMisc, getChild, getChildNoTransform, getIndexOfChild, getNumChildNoTransform, getParent, goStart, grammarName, in$Circle, in$Circle, ind, insertChild, 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 isClassDecl_visited
protected int getSuperClass_visited
protected boolean getSuperClass_computed
protected Declaration getSuperClass_value
protected int decl_visited
protected boolean decl_computed
protected OwlClassDecl decl_value
protected int getProperties_visited
protected boolean getProperties_computed
protected Properties getProperties_value
protected int getSubClasses_visited
protected boolean getSubClasses_computed
protected java.util.ArrayList getSubClasses_value
protected java.util.Map getSubClasses_OwlClassDecl_ArrayList_visited
protected int getRestrictions_visited
protected boolean getRestrictions_computed
protected Restrictions getRestrictions_value
protected int getNumRestriction_visited
protected int getOwnRestrictions_visited
protected boolean getOwnRestrictions_computed
protected Restrictions getOwnRestrictions_value
protected int getNumOwnRestriction_visited
public OwlClassDecl(int i)
public OwlClassDecl(OwlParser p, int i)
public OwlClassDecl()
public void genPrettyPrinter(java.io.PrintStream pStream)
genPrettyPrinter
in class ASTNode<ASTNode>
public void genRewrites(java.io.PrintStream pStream)
genRewrites
in class ASTNode<ASTNode>
public void init$Children()
init$Children
in class OClass
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 OClass
public void checkChild(Node n, int i)
checkChild
in class OClass
public int getNumChild()
getNumChild
in class OClass
public boolean mayHaveRewrite()
mayHaveRewrite
in class OClass
public void flushAttrCache()
flushAttrCache
in class OClass
public void flushCollectionCache()
flushCollectionCache
in class OClass
public void flushRewriteCache()
flushRewriteCache
in class OClass
public OwlClassDecl clone() throws java.lang.CloneNotSupportedException
public OwlClassDecl copy()
copy
in class Declaration
public OwlClassDecl fullCopy()
public OwlClassDecl treeCopyNoTransform()
treeCopyNoTransform
in class OClass
public OwlClassDecl treeCopy()
protected boolean is$Equal(ASTNode node)
is$Equal
in class Declaration
public void setAttributeList(List<Attribute> list)
setAttributeList
in class OClass
list
- The new list node to be used as the Attribute list.public int getNumAttribute()
getNumAttribute
in class OClass
public int getNumAttributeNoTransform()
getNumAttributeNoTransform
in class OClass
public Attribute getAttribute(int i)
i
in the Attribute list.getAttribute
in class OClass
i
- Index of the element to return.i
in the Attribute list.public boolean hasAttribute()
hasAttribute
in class OClass
true
if it has at least one child, false
otherwise.public void addAttribute(Attribute node)
addAttribute
in class OClass
node
- The element to append to the Attribute list.public void addAttributeNoTransform(Attribute node)
addAttributeNoTransform
in class OClass
public void setAttribute(Attribute node, int i)
i
with the new node node
.setAttribute
in class OClass
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()
getAttributeList
in class OClass
public List<Attribute> getAttributeListNoTransform()
This method does not invoke AST transformations.
getAttributeListNoTransform
in class OClass
public List<Attribute> getAttributes()
getAttributes
in class OClass
public List<Attribute> getAttributesNoTransform()
This method does not invoke AST transformations.
getAttributesNoTransform
in class OClass
public void setElementList(List<Element> list)
setElementList
in class OClass
list
- The new list node to be used as the Element list.public int getNumElement()
getNumElement
in class OClass
public int getNumElementNoTransform()
getNumElementNoTransform
in class OClass
public Element getElement(int i)
i
in the Element list.getElement
in class OClass
i
- Index of the element to return.i
in the Element list.public boolean hasElement()
hasElement
in class OClass
true
if it has at least one child, false
otherwise.public void addElement(Element node)
addElement
in class OClass
node
- The element to append to the Element list.public void addElementNoTransform(Element node)
addElementNoTransform
in class OClass
public void setElement(Element node, int i)
i
with the new node node
.setElement
in class OClass
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()
getElementList
in class OClass
public List<Element> getElementListNoTransform()
This method does not invoke AST transformations.
getElementListNoTransform
in class OClass
public List<Element> getElements()
getElements
in class OClass
public List<Element> getElementsNoTransform()
This method does not invoke AST transformations.
getElementsNoTransform
in class OClass
public void setId(java.lang.String value)
@ASTNodeAnnotation.Token(name="Id") public java.lang.String getId()
@ASTNodeAnnotation.Attribute public boolean isClassDecl()
isClassDecl
in class Declaration
@ASTNodeAnnotation.Attribute public Declaration getSuperClass()
getSuperClass
in class OClass
@ASTNodeAnnotation.Attribute public OwlClassDecl decl()
decl
in class Declaration
@ASTNodeAnnotation.Attribute public Properties getProperties()
@ASTNodeAnnotation.Attribute public java.util.ArrayList getSubClasses()
getSubClasses
in class OClass
@ASTNodeAnnotation.Attribute public java.util.ArrayList getSubClasses(OwlClassDecl klass, java.util.ArrayList l)
getSubClasses
in class ASTNode<ASTNode>
@ASTNodeAnnotation.Attribute public Restrictions getRestrictions()
@ASTNodeAnnotation.Attribute public int getNumRestriction()
@ASTNodeAnnotation.Attribute public Restrictions getOwnRestrictions()
@ASTNodeAnnotation.Attribute public int getNumOwnRestriction()