|
||||||||||
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 String
s 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 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 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 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 |