|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjoperties.interpreters.AbstractInterpreter<T>
public abstract class AbstractInterpreter<T>
This class is the abstract superclass of all the interpreters.
| Constructor Summary | |
|---|---|
AbstractInterpreter()
|
|
| Method Summary | |
|---|---|
abstract java.lang.String |
encode(T obj)
This method encodes the provided object to a string. |
abstract java.lang.Class<T> |
getClassType()
This method returns the class that this interpreted handles. |
abstract java.lang.String |
getDescription()
This method returns a description of the way this interpreter interprets and encodes the objects. |
abstract T |
interpret(java.lang.String string)
This method will interpret the provided string as an object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractInterpreter()
| Method Detail |
|---|
public abstract T interpret(java.lang.String string)
throws InterpretationException,
NoApropriateInterpeterFoundException
string - The string to interpret as an object.
InterpretationException - If there was an error interpreting the string.
NoApropriateInterpeterFoundException - If the method needs to call on other interpreters and none is
found.public abstract java.lang.Class<T> getClassType()
public abstract java.lang.String encode(T obj)
throws EncodingException,
NoApropriateInterpeterFoundException
obj - The object to encode as a string.
EncodingException - If there was an error encoding the string.
NoApropriateInterpeterFoundException - If the method needs to call on other interpreters and none is
found.public abstract java.lang.String getDescription()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||