MaltParser 1.0.3

org.maltparser.parser.algorithm.helper
Class ParserAction

java.lang.Object
  extended by org.maltparser.parser.algorithm.helper.ParserAction

public class ParserAction
extends Object

Since:
1.0
Author:
Joakim Nivre, Johan Hall

Constructor Summary
ParserAction(Transition[] transitions, ParsingAlgorithm parsingAlgorithm)
           
 
Method Summary
 void addAction(int code)
           
 void addAction(int code, ArcLabels arcLabels)
           
 void addAction(int code, SymbolTable table, Integer labelCode)
           
 void addAction(int code, SymbolTable table, String label)
           
 void addAction(String name)
           
 void addAction(String transitionName, ArcLabels arcLabels)
           
 void addAction(String transitionName, SymbolTable table, Integer labelCode)
           
 void addAction(String transitionName, SymbolTable table, String label)
           
 void addTransitionToClassSymbolTable(SymbolTable classes)
           
 void clear()
           
 int getCardinality(String item)
           
 String getLabel(SymbolTable table, int index)
           
 Integer getLabelCode(SymbolTable table, int index)
           
 String getLastLabel(SymbolTable table)
           
 ArcLabels getLastLabelCode()
           
 Integer getLastLabelCode(SymbolTable table)
           
 Transition getLastTransition()
           
 SymbolTable getOutputSymbolTable(String arcName)
           
 HashMap<String,SymbolTable> getOutputSymbolTables()
           
 Transition getTransition(int index)
           
 String getTransition(Integer value)
           
 Integer getTransition(String value)
           
 Collection<Transition> getTransitions()
           
 void replaceAction(int code)
           
 void replaceAction(int code, ArcLabels arcLabels)
           
 void replaceAction(int code, SymbolTable table, Integer labelCode)
           
 void replaceAction(int code, SymbolTable table, String label)
           
 void replaceAction(String name)
           
 void replaceAction(String transitionName, ArcLabels arcLabels)
           
 void replaceAction(String name, SymbolTable table, Integer labelCode)
           
 void replaceAction(String name, SymbolTable table, String label)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParserAction

public ParserAction(Transition[] transitions,
                    ParsingAlgorithm parsingAlgorithm)
Method Detail

addAction

public void addAction(String transitionName,
                      SymbolTable table,
                      Integer labelCode)
               throws MaltChainedException
Throws:
MaltChainedException

addAction

public void addAction(int code,
                      SymbolTable table,
                      Integer labelCode)
               throws MaltChainedException
Throws:
MaltChainedException

addAction

public void addAction(String transitionName,
                      SymbolTable table,
                      String label)
               throws MaltChainedException
Throws:
MaltChainedException

addAction

public void addAction(int code,
                      SymbolTable table,
                      String label)
               throws MaltChainedException
Throws:
MaltChainedException

addAction

public void addAction(String name)
               throws MaltChainedException
Throws:
MaltChainedException

addAction

public void addAction(int code)
               throws MaltChainedException
Throws:
MaltChainedException

addAction

public void addAction(int code,
                      ArcLabels arcLabels)
               throws MaltChainedException
Throws:
MaltChainedException

addAction

public void addAction(String transitionName,
                      ArcLabels arcLabels)
               throws MaltChainedException
Throws:
MaltChainedException

replaceAction

public void replaceAction(int code,
                          SymbolTable table,
                          Integer labelCode)
                   throws MaltChainedException
Throws:
MaltChainedException

replaceAction

public void replaceAction(String name,
                          SymbolTable table,
                          Integer labelCode)
                   throws MaltChainedException
Throws:
MaltChainedException

replaceAction

public void replaceAction(int code,
                          SymbolTable table,
                          String label)
                   throws MaltChainedException
Throws:
MaltChainedException

replaceAction

public void replaceAction(String name,
                          SymbolTable table,
                          String label)
                   throws MaltChainedException
Throws:
MaltChainedException

replaceAction

public void replaceAction(int code,
                          ArcLabels arcLabels)
                   throws MaltChainedException
Throws:
MaltChainedException

replaceAction

public void replaceAction(String transitionName,
                          ArcLabels arcLabels)
                   throws MaltChainedException
Throws:
MaltChainedException

replaceAction

public void replaceAction(int code)
                   throws MaltChainedException
Throws:
MaltChainedException

replaceAction

public void replaceAction(String name)
                   throws MaltChainedException
Throws:
MaltChainedException

clear

public void clear()

getTransition

public Transition getTransition(int index)

getLabelCode

public Integer getLabelCode(SymbolTable table,
                            int index)

getLabel

public String getLabel(SymbolTable table,
                       int index)
                throws MaltChainedException
Throws:
MaltChainedException

getLastTransition

public Transition getLastTransition()

getLastLabelCode

public Integer getLastLabelCode(SymbolTable table)

getLastLabelCode

public ArcLabels getLastLabelCode()

getLastLabel

public String getLastLabel(SymbolTable table)
                    throws MaltChainedException
Throws:
MaltChainedException

getCardinality

public int getCardinality(String item)

getOutputSymbolTable

public SymbolTable getOutputSymbolTable(String arcName)

getOutputSymbolTables

public HashMap<String,SymbolTable> getOutputSymbolTables()

getTransitions

public Collection<Transition> getTransitions()

getTransition

public Integer getTransition(String value)

getTransition

public String getTransition(Integer value)

addTransitionToClassSymbolTable

public void addTransitionToClassSymbolTable(SymbolTable classes)
                                     throws MaltChainedException
Throws:
MaltChainedException

MaltParser 1.0.3

Copyright 2007 Johan Hall, Jens Nilsson and Joakim Nivre.