|
||||||||||
| 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.DirectionAnalyzer
public class DirectionAnalyzer
Analyzer for the Strings representing a direction.
| Constructor Summary | |
|---|---|
DirectionAnalyzer()
|
|
| Method Summary | |
|---|---|
List<Object> |
analyze(String tokenToAnalyze)
Analyzes a given token and returns an appropriate object. |
IAnalyzer |
createCopy()
Creates a copy of the current analyzer. |
boolean |
equals(Object obj)
|
List<String> |
getInboundDirections()
|
List<String> |
getOutboundDirections()
|
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. |
void |
setDirections(List<String> inboundDirs,
List<String> outboundDirs)
Sets the inbound and outbound direction texts. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DirectionAnalyzer()
| Method Detail |
|---|
public List<Object> analyze(String tokenToAnalyze)
throws UnsupportedTokenException
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 void setDirections(List<String> inboundDirs,
List<String> outboundDirs)
inboundDirs - the inbound direction textsoutboundDirs - the outbound directions textspublic List<String> getInboundDirections()
public List<String> getOutboundDirections()
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 | |||||||||