|
||||||||||
| 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 IAnalyzertokenToAnalyze - the token to analyze
UnsupportedTokenExceptionIAnalyzer.analyze(java.lang.String)public List<Class<?>> getReturnTypes()
IAnalyzer.analyze(String) method.
getReturnTypes in interface IAnalyzerIAnalyzer.getReturnTypes()public void setDefaultValue(String defaultValue)
setDefaultValue in interface IAnalyzerdefaultValue - the analyzer's default valueIAnalyzer.setDefaultValue(java.lang.String)public IAnalyzer createCopy()
createCopy in interface IAnalyzerIAnalyzer.createCopy()public boolean isComplete()
isComplete in interface IAnalyzerIAnalyzer.isComplete()public String toString()
toString in class ObjectObject.toString()public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class ObjectObject.hashCode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||