edu.cmu.minorthird.text.mixup
Class Statement

java.lang.Object
  extended by edu.cmu.minorthird.text.mixup.Statement
All Implemented Interfaces:
java.io.Serializable

public class Statement
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
static int ANNOTATE_WITH
           
static int DECLARE
           
static int FILTER
           
static int MIXUP
           
static int PROVIDE
           
static int REGEX
           
static int REQUIRE
           
static int TRIE
           
 
Method Summary
 java.lang.String getAnnotationType()
          Returns the type that this statement either provides or requires.
 java.util.List<java.lang.String> getFilesToLoad()
          Returns a list of the files that need to be loaded if this Statement defines a dictionary.
 java.lang.String getFileToLoad()
          Returns the file that needs to be loaded in this Statement is an ANNOTATE_WITH or REQUIRE statement.
 boolean getIgnoreCase()
          Returns whether or not this statement will ignore case when defining a dictionary.
 java.lang.String getImportLevel()
          Returns the level that this statement will import from in a call to importFromLevel.
 java.lang.String getImportType()
          Returns the type that imported spans should be called when this statement executes an importFromLevel call.
 java.lang.String getKeyword()
          Returns the keyword that defines what this Statement does.
 java.lang.String getLevel()
          Returns the level name to be used when this statement is performing a level operation (onLevel, offLeve, defLevel, importFromLevel)
 Mixup getMixupExpr()
          Returns the mixup expression that this statement will execute.
 java.lang.String getOldType()
          Returns the type from the source level that should be imported when this statement executes an importFromLevel call.
 java.lang.String getPatt()
          Returns the pattern that is used to create a new level when this statement is defining a new level.
 java.util.List<java.lang.String> getPhraseList()
          Returns the phrase list for when this statement will define a trie.
 java.lang.String getProperty()
          Returns the property that this statement matches
 java.lang.String getRegex()
          Returns the regex string that will be executed by this statement.
 int getRegexGroup()
          Returns the regex group that will be returned when this statement executes.
 java.lang.String getSplit()
          Returns the type of level to create when this Statement is defining a level.
 java.lang.String getStartType()
          Returns the starting type in the case that this statement is a generator statement.
 int getStatementType()
          Returns an integer representing the type this Statement is.
 java.lang.String getType()
          Returns the type that this Statement matches.
 java.lang.String getValue()
          Returns the value that this statement will match.
 java.util.Set<java.lang.String> getWordSet()
          Returns the set of words defining a dictionary in the case that this statement defines a dictionary inline.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

REGEX

public static int REGEX

MIXUP

public static int MIXUP

FILTER

public static int FILTER

PROVIDE

public static int PROVIDE

REQUIRE

public static int REQUIRE

DECLARE

public static int DECLARE

TRIE

public static int TRIE

ANNOTATE_WITH

public static int ANNOTATE_WITH
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getStatementType

public int getStatementType()
Returns an integer representing the type this Statement is. Valid types are: DECLARE, PROVIDE, REQUIRE, ANNOTATE_WITH, MIXUP, FILTER, REGEX, and TRIE.


getKeyword

public java.lang.String getKeyword()
Returns the keyword that defines what this Statement does.


getFilesToLoad

public java.util.List<java.lang.String> getFilesToLoad()
Returns a list of the files that need to be loaded if this Statement defines a dictionary.


getFileToLoad

public java.lang.String getFileToLoad()
Returns the file that needs to be loaded in this Statement is an ANNOTATE_WITH or REQUIRE statement.


getType

public java.lang.String getType()
Returns the type that this Statement matches.


getProperty

public java.lang.String getProperty()
Returns the property that this statement matches


getValue

public java.lang.String getValue()
Returns the value that this statement will match.


getIgnoreCase

public boolean getIgnoreCase()
Returns whether or not this statement will ignore case when defining a dictionary.


getWordSet

public java.util.Set<java.lang.String> getWordSet()
Returns the set of words defining a dictionary in the case that this statement defines a dictionary inline.


getSplit

public java.lang.String getSplit()
Returns the type of level to create when this Statement is defining a level.


getPatt

public java.lang.String getPatt()
Returns the pattern that is used to create a new level when this statement is defining a new level.


getLevel

public java.lang.String getLevel()
Returns the level name to be used when this statement is performing a level operation (onLevel, offLeve, defLevel, importFromLevel)


getOldType

public java.lang.String getOldType()
Returns the type from the source level that should be imported when this statement executes an importFromLevel call.


getImportType

public java.lang.String getImportType()
Returns the type that imported spans should be called when this statement executes an importFromLevel call.


getImportLevel

public java.lang.String getImportLevel()
Returns the level that this statement will import from in a call to importFromLevel.


getAnnotationType

public java.lang.String getAnnotationType()
Returns the type that this statement either provides or requires.


getStartType

public java.lang.String getStartType()
Returns the starting type in the case that this statement is a generator statement.


getMixupExpr

public Mixup getMixupExpr()
Returns the mixup expression that this statement will execute.


getPhraseList

public java.util.List<java.lang.String> getPhraseList()
Returns the phrase list for when this statement will define a trie.


getRegex

public java.lang.String getRegex()
Returns the regex string that will be executed by this statement.


getRegexGroup

public int getRegexGroup()
Returns the regex group that will be returned when this statement executes.