|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgate.creole.morph.Variable
public abstract class Variable
Description: This is an interface which should be implemented by every new variable type. Variable here is considered to have more than one values. Example of built-in varilables for morpher are StringSet, CharacterRange, CharacterSet.
Field Summary | |
---|---|
protected int |
pointer
|
protected String |
varName
name of the variable |
protected String |
varValue
value of the variable |
Constructor Summary | |
---|---|
Variable()
|
Method Summary | |
---|---|
abstract boolean |
contains(String varValue)
should tell variable has one of the values with varValue |
String |
getPattern()
this method returns the formatted pattern, which could be recognized by the regular expressions |
abstract boolean |
hasNext()
method tells if next element is available to fetch |
abstract String |
next()
should return the next element in the variable |
void |
resetPointer()
resets the pointer to the begining |
abstract boolean |
set(String varName,
String pattern)
Sets the variable name and pattern for the variable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int pointer
protected String varName
protected String varValue
Constructor Detail |
---|
public Variable()
Method Detail |
---|
public abstract boolean hasNext()
public abstract String next()
public abstract boolean set(String varName, String pattern)
public abstract boolean contains(String varValue)
public String getPattern()
public void resetPointer()
|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |