|
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.ParsingFunctions
public class ParsingFunctions
Title: ParsingFunctions.java
Description: This class implements all static methods, which can be used for various purposes, like converting rules defined by users into the regular expressions, finding varilable type from its value type etc.
Constructor Summary | |
---|---|
ParsingFunctions()
Default Constructor |
Method Summary | |
---|---|
static String |
convertToRegExp(String line,
Storage storage)
This method convert the expression which has been entered by the user in the .rul file (i.e. rules defined by the user), into the expression which are recognized by the regular expression Patterns |
static int |
findVariableType(String varValue)
This method takes the value of the variable and tells the user what type of value is from CharacterRange, CharacterSet, StringSet |
static boolean |
isBoolean(String value)
This method checks for the string if it is a valid integer value |
static boolean |
isInteger(String value)
This method checks for the string if it is a valid integer value |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ParsingFunctions()
Method Detail |
---|
public static int findVariableType(String varValue)
varValue
- value for which to find the variable type
public static boolean isInteger(String value)
value
- value to be checked for its type to be integer
public static boolean isBoolean(String value)
value
- value to be checked for its type to be integer
public static String convertToRegExp(String line, Storage storage)
line
- rule defined by the userstorage
- this method internally requires values of the used
variables to replace the them with their values in the expression
|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |