public class StackConfig extends ParserConfiguration
historyNode
Constructor and Description |
---|
StackConfig() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the parser configuration
|
boolean |
equals(java.lang.Object obj) |
DependencyStructure |
getDependencyGraph()
Returns the dependency structure
|
DependencyStructure |
getDependencyStructure() |
java.util.Stack<DependencyNode> |
getInput() |
DependencyNode |
getInputNode(int index) |
DependencyNode |
getLookaheadNode(int index) |
java.util.Stack<DependencyNode> |
getStack() |
DependencyNode |
getStackNode(int index) |
void |
initialize()
Initialize the parser configuration
|
void |
initialize(ParserConfiguration parserConfiguration) |
boolean |
isTerminalState()
Returns true if the parser configuration is in a terminal state, otherwise false.
|
void |
lookaheadDecrement() |
void |
lookaheadIncrement() |
void |
setDependencyGraph(DependencyStructure source)
Sets the dependency structure
|
java.lang.String |
toString() |
getHistoryNode, setHistoryNode
public StackConfig() throws MaltChainedException
MaltChainedException
public java.util.Stack<DependencyNode> getStack()
public java.util.Stack<DependencyNode> getInput()
public DependencyStructure getDependencyStructure()
public boolean isTerminalState()
ParserConfiguration
isTerminalState
in class ParserConfiguration
public DependencyNode getStackNode(int index) throws MaltChainedException
MaltChainedException
public DependencyNode getLookaheadNode(int index) throws MaltChainedException
MaltChainedException
public DependencyNode getInputNode(int index) throws MaltChainedException
MaltChainedException
public void setDependencyGraph(DependencyStructure source) throws MaltChainedException
ParserConfiguration
setDependencyGraph
in class ParserConfiguration
source
- a dependency structureMaltChainedException
public void lookaheadIncrement()
public void lookaheadDecrement()
public DependencyStructure getDependencyGraph()
ParserConfiguration
getDependencyGraph
in class ParserConfiguration
public void initialize(ParserConfiguration parserConfiguration) throws MaltChainedException
MaltChainedException
public void initialize() throws MaltChainedException
ParserConfiguration
initialize
in class ParserConfiguration
MaltChainedException
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public void clear() throws MaltChainedException
ParserConfiguration
clear
in class ParserConfiguration
MaltChainedException
public java.lang.String toString()
toString
in class java.lang.Object
Copyright 2007-2017 Johan Hall, Jens Nilsson and Joakim Nivre.