public class StringNode extends AbstractNode
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
value
final String Attibut value.
|
| Constructor and Description |
|---|
StringNode(java.lang.String value)
StringNode.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
AbstractReturnValue |
interpret(CommunicationManager mgr)
Interpret-Methode, die von den entsprechenden erbenden Klassen implementiert werden muss.
|
private java.lang.String |
lookUpForVariables(CommunicationManager mgr,
java.lang.String tempResult) |
private java.lang.String |
replaceDollarBracket(CommunicationManager mgr,
java.lang.String str) |
private java.lang.String |
replaceDollarNoBracket(CommunicationManager mgr,
java.lang.String str) |
private java.lang.String |
replaceMascSymbols(java.lang.String str,
java.lang.String inputReplace,
java.lang.String inputExp) |
private java.lang.String |
replaceProzBracket(CommunicationManager mgr,
java.lang.String str) |
private java.lang.String |
replaceProzNoBracket(CommunicationManager mgr,
java.lang.String str) |
java.lang.String |
toString() |
isIDNode, isIdSetArrayNode, isIDSetNode, toIDNode, toIdSetArrayNode, toIDSetNodepublic StringNode(java.lang.String value)
value - Stringpublic java.lang.String toString()
toString in class AbstractNodepublic boolean equals(java.lang.Object obj)
equals in class AbstractNodepublic int hashCode()
hashCode in class AbstractNodepublic AbstractReturnValue interpret(CommunicationManager mgr) throws VariableDoesNotExistException
AbstractNodeinterpret in class AbstractNodemgr - The CommunicationManager to use.VariableDoesNotExistExceptionprivate java.lang.String replaceMascSymbols(java.lang.String str,
java.lang.String inputReplace,
java.lang.String inputExp)
str - Die zu veraendernde zeichenkette.inputReplace - Der Wert durch den ersetzt wird.inputExp - Der regulaere Ausdruck dessen matches geaendert werden.private java.lang.String lookUpForVariables(CommunicationManager mgr, java.lang.String tempResult) throws VariableDoesNotExistException
mgr - The CommunicationManager to use.tempResult - .VariableDoesNotExistException - Falls die gesuchte Variable nicht besteht. Am besten vorher mit contains pruefen.private java.lang.String replaceDollarNoBracket(CommunicationManager mgr, java.lang.String str) throws VariableDoesNotExistException
mgr - The CommunicationManager to use.str - der string zum durchsuchen.VariableDoesNotExistException - if the variable doesnt exist.private java.lang.String replaceProzNoBracket(CommunicationManager mgr, java.lang.String str) throws VariableDoesNotExistException
mgr - The CommunicationManager to use.str - der string zum durchsuchen.VariableDoesNotExistException - if the variable doesnt exist.private java.lang.String replaceDollarBracket(CommunicationManager mgr, java.lang.String str) throws VariableDoesNotExistException
mgr - The CommunicationManager to use.str - der string zum durchsuchen.VariableDoesNotExistException - if the variable doesnt exist.private java.lang.String replaceProzBracket(CommunicationManager mgr, java.lang.String str) throws VariableDoesNotExistException
mgr - The CommunicationManager to use.str - der string zum durchsuchen.VariableDoesNotExistException - if the variable doesnt exist.