|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.edu.agh.cast.importer.base.parser.analyzer.StringAnalyzer
public class StringAnalyzer
Analyzer for the String
objects.
Constructor Summary | |
---|---|
StringAnalyzer()
|
Method Summary | |
---|---|
List<Object> |
analyze(String tokenToAnalyze)
Returns list containing String object which is equal to trimmed token. |
IAnalyzer |
createCopy()
Creates a copy of the current analyzer. |
boolean |
equals(Object obj)
|
List<Class<?>> |
getReturnTypes()
Retrieves the return types of the IAnalyzer.analyze(String) method. |
int |
hashCode()
|
boolean |
isComplete()
Checks whether current analyzer is fully configured - all necessary parameters are present and the the analysis process can be performed. |
void |
setDefaultValue(String defaultValue)
Sets the default value for the analyzer. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StringAnalyzer()
Method Detail |
---|
public List<Object> analyze(String tokenToAnalyze) throws UnsupportedTokenException
null
or empty (
trim().length == 0
), null
is returned.
Analyzes a given token and returns an appropriate object.
analyze
in interface IAnalyzer
tokenToAnalyze
- the token to analyze
UnsupportedTokenException
IAnalyzer.analyze(java.lang.String)
public List<Class<?>> getReturnTypes()
IAnalyzer.analyze(String)
method.
getReturnTypes
in interface IAnalyzer
IAnalyzer.getReturnTypes()
public void setDefaultValue(String defaultValue)
setDefaultValue
in interface IAnalyzer
defaultValue
- the analyzer's default valueIAnalyzer.setDefaultValue(java.lang.String)
public IAnalyzer createCopy()
createCopy
in interface IAnalyzer
IAnalyzer.createCopy()
public boolean isComplete()
isComplete
in interface IAnalyzer
IAnalyzer.isComplete()
public String toString()
toString
in class Object
Object.toString()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |