|
||||||||||
| 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.IntegerAnalyzer
public class IntegerAnalyzer
Analyzer for the Integer objects.
| Constructor Summary | |
|---|---|
IntegerAnalyzer()
|
|
| Method Summary | |
|---|---|
List<Object> |
analyze(String tokenToAnalyze)
Returns list containing one integer object which is equal to Integer(token.trim()). |
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 IntegerAnalyzer()
| Method Detail |
|---|
public List<Object> analyze(String tokenToAnalyze)
throws UnsupportedTokenException
Integer(token.trim()). If token is
null or empty (trim().length == 0), null is returned.
analyze in interface IAnalyzertokenToAnalyze - the token to analyze
UnsupportedTokenException - when cannot parse token as integer.
IAnalyzer.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 | |||||||||