public class ASDGrammarNode
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
hasIncoming |
protected boolean |
nodeBegins |
protected java.util.ArrayList<java.lang.String> |
nodeBeginsTypes |
protected java.lang.String |
nodeInstance |
protected java.lang.String |
nodePhraseType |
protected java.lang.String |
nodeSemanticAction |
protected java.lang.String |
nodeSemanticValue |
protected java.util.ArrayList<ASDGrammarSuccessor> |
nodeSuccessors |
protected java.util.ArrayList<java.lang.String> |
nodeSuccessorTypes |
protected java.lang.String |
nodeWord |
protected short |
xCoordinate |
protected short |
yCoordinate |
Constructor and Description |
---|
ASDGrammarNode(java.lang.String word,
java.lang.String instance,
boolean begins,
java.util.ArrayList<java.lang.String> beginsTypes,
java.util.ArrayList<ASDGrammarSuccessor> successors,
java.util.ArrayList<java.lang.String> successorTypes,
java.lang.String phraseType,
java.lang.String semanticValue,
java.lang.String semanticAction)
Initializes a new ASDGrammarNode.
|
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<java.lang.String> |
beginsTypes() |
short |
getXCoordinate() |
short |
getYCoordinate() |
java.lang.String |
instance() |
boolean |
isFinal() |
boolean |
isInitial() |
java.lang.String |
phraseType() |
java.lang.String |
semanticAction() |
java.lang.String |
semanticValue() |
java.util.ArrayList<ASDGrammarSuccessor> |
successors() |
java.util.ArrayList<java.lang.String> |
successorTypes() |
java.lang.String |
toString() |
java.lang.String |
toString(boolean optimize) |
java.lang.String |
word() |
protected java.lang.String nodeWord
protected java.lang.String nodeInstance
protected boolean nodeBegins
protected java.util.ArrayList<java.lang.String> nodeBeginsTypes
protected java.util.ArrayList<ASDGrammarSuccessor> nodeSuccessors
protected java.util.ArrayList<java.lang.String> nodeSuccessorTypes
protected java.lang.String nodePhraseType
protected java.lang.String nodeSemanticValue
protected java.lang.String nodeSemanticAction
protected short xCoordinate
protected short yCoordinate
protected boolean hasIncoming
public ASDGrammarNode(java.lang.String word, java.lang.String instance, boolean begins, java.util.ArrayList<java.lang.String> beginsTypes, java.util.ArrayList<ASDGrammarSuccessor> successors, java.util.ArrayList<java.lang.String> successorTypes, java.lang.String phraseType, java.lang.String semanticValue, java.lang.String semanticAction)
word
- the vocabulary element for which
the node represents an instanceinstance
- the instance index of the nodebegins
- indicates whether or not the node
can begin a phrasebeginsTypes
- indicates what types of
phrase (if any) can begin at the node; null
indicates unspecified typessuccessors
- lists pairs (word instance-index)
of successors of the node in the grammar, if any;
null indicates that the node is a final nodesuccessorTypes
- lists the phrase types in
the successor nodes (if any); if successors is
not null, null here indicates that there are
successor phrase types with unspecified namesphraseType
- names the phrase type that
ends at the node, if the node is a final onesemanticValue
- a String to be evaluated as
the semantic value of the completed phrase,
if the node is a final one; null indicates no
semantic value to be computedsemanticAction
- a String to be evaluated
when the node is entered during a parse; null
indicates no semantic action to be performedpublic java.util.ArrayList<java.lang.String> beginsTypes()
public short getXCoordinate()
public short getYCoordinate()
public java.lang.String instance()
public boolean isFinal()
public boolean isInitial()
public java.lang.String phraseType()
public java.lang.String semanticAction()
public java.lang.String semanticValue()
public java.util.ArrayList<ASDGrammarSuccessor> successors()
public java.util.ArrayList<java.lang.String> successorTypes()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(boolean optimize)
optimize
- indicates whether or not the node should be
converted to a form that is optimized for parsing.public java.lang.String word()