Constructor and Description |
---|
SimpleNode(int i)
Instantiates a new simple node.
|
SimpleNode(OWLFunctionalSyntaxParser p,
int i)
Instantiates a new simple node.
|
Modifier and Type | Method and Description |
---|---|
void |
dump(String prefix)
Override this method if you want to customize how the node dumps out its
children.
|
void |
jjtAddChild(Node n,
int i)
This method tells the node to add its argument to the node's list of
children.
|
void |
jjtClose()
This method is called after all the child nodes have been added.
|
Node |
jjtGetChild(int i)
This method returns a child node.
|
int |
jjtGetNumChildren()
Return the number of children the node has.
|
Node |
jjtGetParent() |
Object |
jjtGetValue()
Jjt get value.
|
void |
jjtOpen()
This method is called after the node has been made the current node.
|
void |
jjtSetParent(Node n)
This pair of methods are used to inform the node of its parent.
|
void |
jjtSetValue(Object value1)
Jjt set value.
|
String |
toString() |
String |
toString(String prefix)
To string.
|
public SimpleNode(int i)
i
- idpublic SimpleNode(OWLFunctionalSyntaxParser p, int i)
p
- parseri
- idpublic void jjtOpen()
Node
public void jjtClose()
Node
public void jjtSetParent(Node n)
Node
jjtSetParent
in interface Node
n
- nodepublic Node jjtGetParent()
jjtGetParent
in interface Node
public void jjtAddChild(Node n, int i)
Node
jjtAddChild
in interface Node
n
- nodei
- positionpublic Node jjtGetChild(int i)
Node
jjtGetChild
in interface Node
i
- positionpublic int jjtGetNumChildren()
Node
jjtGetNumChildren
in interface Node
public void jjtSetValue(Object value1)
value1
- the value1public Object jjtGetValue()
public String toString(String prefix)
prefix
- prefix to usepublic void dump(String prefix)
prefix
- prefixCopyright © 2017 The University of Manchester. All Rights Reserved.