AST
Class Declaration

java.lang.Object
  extended by AST.SimpleNode
      extended by AST.ASTNode<ASTNode>
          extended by AST.Element
              extended by AST.ComplexElement
                  extended by AST.Declaration
All Implemented Interfaces:
Node, java.lang.Cloneable, java.lang.Iterable<ASTNode>
Direct Known Subclasses:
ClassDeclaration, IndividualDeclaration

public class Declaration
extends ComplexElement
implements java.lang.Cloneable


Field Summary
protected  boolean getSuperClass_computed
           
protected  Declaration getSuperClass_value
           
protected  int getSuperClass_visited
           
protected  int isClassDecl_visited
           
protected  int isIndividualDecl_visited
           
protected  int name_visited
           
 
Fields inherited from class AST.ComplexElement
findDecl_String_visited, getId_visited, getSuperClass_String_visited, iri_visited
 
Fields inherited from class AST.Element
getId_computed, getId_value, isClass_visited, isIndividual_visited, range_computed, range_value, range_visited, type_computed, type_value, type_visited
 
Fields inherited from class AST.ASTNode
boundariesCrossed, CHANGE, CIRCLE_INDEX, duringRewrites, generatedWithCacheCycle, generatedWithCircularEnabled, generatedWithComponentCheck, getSubClasses_OwlClassDecl_ArrayList_visited, goStart_visited, IN_CIRCLE, in$Circle, is$Final, LAST_CYCLE, RESET_CYCLE, REWRITE_CHANGE, REWRITE_INTERRUPT, REWRITE_NOCHANGE, state
 
Fields inherited from class AST.SimpleNode
children, id, parent, parser
 
Constructor Summary
Declaration()
           
Declaration(int i)
           
Declaration(List<Attribute> p0, List<Element> p1)
           
Declaration(OwlParser p, int i)
           
 
Method Summary
 void addAttribute(Attribute node)
           
 void addElement(Element node)
           
 void checkChild(Node n, int i)
           
 Declaration clone()
           
 Declaration copy()
           
 void dumpTree(java.lang.String indent, java.io.PrintStream pStream)
           
 void flushCache()
           
 Declaration fullCopy()
           
 Attribute getAttribute(int i)
           
 List<Attribute> getAttributeList()
           
 List<Attribute> getAttributeListNoTransform()
           
 List<Attribute> getAttributes()
           
 List<Attribute> getAttributesNoTransform()
           
 Element getElement(int i)
           
 List<Element> getElementList()
           
 List<Element> getElementListNoTransform()
           
 List<Element> getElements()
           
 List<Element> getElementsNoTransform()
           
 int getNumAttribute()
           
 int getNumChild()
           
 int getNumElement()
           
 Declaration getSuperClass()
           
 boolean isClassDecl()
           
 boolean isIndividualDecl()
           
 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)
           
 void setAttributeList(List<Attribute> list)
           
 void setElement(Element node, int i)
           
 void setElementList(List<Element> list)
           
 
Methods inherited from class AST.ComplexElement
findDecl, getId, getSuperClass, iri
 
Methods inherited from class AST.Element
isClass, isIndividual, range, type
 
Methods inherited from class AST.ASTNode
addChild, duringRewrites, genMisc, genPrettyPrinter, genRewrites, getChild, getChild, getChildNoTransform, getIndexOfChild, getNumChildNoTransform, getParent, getSubClasses, goStart, grammarName, in$Circle, in$Circle, ind, insertChild, is$Final, is$Final, iterator, removeChild, reset, setChild, setGrammarName, setParent
 
Methods inherited from class AST.SimpleNode
childrenAccept, dump, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, toString, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name_visited

protected int name_visited

isClassDecl_visited

protected int isClassDecl_visited

isIndividualDecl_visited

protected int isIndividualDecl_visited

getSuperClass_visited

protected int getSuperClass_visited

getSuperClass_computed

protected boolean getSuperClass_computed

getSuperClass_value

protected Declaration getSuperClass_value
Constructor Detail

Declaration

public Declaration(int i)

Declaration

public Declaration(OwlParser p,
                   int i)

Declaration

public Declaration()

Declaration

public Declaration(List<Attribute> p0,
                   List<Element> p1)
Method Detail

flushCache

public void flushCache()
Overrides:
flushCache in class ComplexElement

clone

public Declaration clone()
                  throws java.lang.CloneNotSupportedException
Overrides:
clone in class ComplexElement
Throws:
java.lang.CloneNotSupportedException

copy

public Declaration copy()
Overrides:
copy in class ASTNode<ASTNode>

fullCopy

public Declaration fullCopy()
Overrides:
fullCopy in class ASTNode<ASTNode>

dumpTree

public void dumpTree(java.lang.String indent,
                     java.io.PrintStream pStream)
Overrides:
dumpTree in class ComplexElement

jjtAccept

public java.lang.Object jjtAccept(OwlParserVisitor visitor,
                                  java.lang.Object data)
Description copied from class: SimpleNode
Accept the visitor.

Specified by:
jjtAccept in interface Node
Overrides:
jjtAccept in class ComplexElement

jjtAddChild

public void jjtAddChild(Node n,
                        int i)
Description copied from interface: Node
This method tells the node to add its argument to the node's list of children.

Specified by:
jjtAddChild in interface Node
Overrides:
jjtAddChild in class ComplexElement

checkChild

public void checkChild(Node n,
                       int i)
Overrides:
checkChild in class ComplexElement

getNumChild

public int getNumChild()
Overrides:
getNumChild in class ComplexElement

mayHaveRewrite

public boolean mayHaveRewrite()
Overrides:
mayHaveRewrite in class ComplexElement

setAttributeList

public void setAttributeList(List<Attribute> list)
Overrides:
setAttributeList in class ComplexElement

getNumAttribute

public int getNumAttribute()
Overrides:
getNumAttribute in class ComplexElement

getAttribute

public Attribute getAttribute(int i)
Overrides:
getAttribute in class ComplexElement

addAttribute

public void addAttribute(Attribute node)
Overrides:
addAttribute in class ComplexElement

setAttribute

public void setAttribute(Attribute node,
                         int i)
Overrides:
setAttribute in class ComplexElement

getAttributes

public List<Attribute> getAttributes()
Overrides:
getAttributes in class ComplexElement

getAttributesNoTransform

public List<Attribute> getAttributesNoTransform()
Overrides:
getAttributesNoTransform in class ComplexElement

getAttributeList

public List<Attribute> getAttributeList()
Overrides:
getAttributeList in class ComplexElement

getAttributeListNoTransform

public List<Attribute> getAttributeListNoTransform()
Overrides:
getAttributeListNoTransform in class ComplexElement

setElementList

public void setElementList(List<Element> list)
Overrides:
setElementList in class ComplexElement

getNumElement

public int getNumElement()
Overrides:
getNumElement in class ComplexElement

getElement

public Element getElement(int i)
Overrides:
getElement in class ComplexElement

addElement

public void addElement(Element node)
Overrides:
addElement in class ComplexElement

setElement

public void setElement(Element node,
                       int i)
Overrides:
setElement in class ComplexElement

getElements

public List<Element> getElements()
Overrides:
getElements in class ComplexElement

getElementsNoTransform

public List<Element> getElementsNoTransform()
Overrides:
getElementsNoTransform in class ComplexElement

getElementList

public List<Element> getElementList()
Overrides:
getElementList in class ComplexElement

getElementListNoTransform

public List<Element> getElementListNoTransform()
Overrides:
getElementListNoTransform in class ComplexElement

name

public java.lang.String name()
Overrides:
name in class Element

isClassDecl

public boolean isClassDecl()

isIndividualDecl

public boolean isIndividualDecl()

getSuperClass

public Declaration getSuperClass()

rewriteTo

public ASTNode rewriteTo()
Overrides:
rewriteTo in class ComplexElement