org.maltparser.core.syntaxgraph.headrules
Class HeadRule
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<PrioList>
org.maltparser.core.syntaxgraph.headrules.HeadRule
- All Implemented Interfaces:
- Serializable, Cloneable, Iterable<PrioList>, Collection<PrioList>, List<PrioList>, RandomAccess
public class HeadRule
- extends ArrayList<PrioList>
- Author:
- Johan Hall
- See Also:
- Serialized Form
Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
headRules
protected HeadRules headRules
table
protected SymbolTable table
symbolCode
protected int symbolCode
defaultDirection
protected Direction defaultDirection
HeadRule
public HeadRule(HeadRules headRules,
String ruleSpec)
throws MaltChainedException
- Throws:
MaltChainedException
init
public void init(String ruleSpec)
throws MaltChainedException
- Throws:
MaltChainedException
getHeadChild
public PhraseStructureNode getHeadChild(NonTerminalNode nt)
throws MaltChainedException
- Throws:
MaltChainedException
getTable
public SymbolTable getTable()
setTable
public void setTable(SymbolTable table)
getSymbolCode
public int getSymbolCode()
setSymbolCode
public void setSymbolCode(int symbolCode)
getSymbolString
public String getSymbolString()
throws MaltChainedException
- Throws:
MaltChainedException
getDefaultDirection
public Direction getDefaultDirection()
setDefaultDirection
public void setDefaultDirection(Direction direction)
getLogger
public org.apache.log4j.Logger getLogger()
setHeadRules
public void setHeadRules(HeadRules headRules)
getDataFormatInstance
public DataFormatInstance getDataFormatInstance()
toString
public String toString()
- Overrides:
toString
in class AbstractCollection<PrioList>
Copyright 2007-2010 Johan Hall, Jens Nilsson and Joakim Nivre.