public class DefaultSignature extends java.lang.Object implements SignatureInterface
SignatureInterface implementation which extracts the information of a signature string and
transforms it into an easy to access data structure.| Constructor and Description |
|---|
DefaultSignature() |
| Modifier and Type | Method and Description |
|---|---|
ExecutionError |
createSignature(java.lang.String signatureString,
ScriptSystemInterface<?,?> scriptSystem)
Initializes the signature according to the given string.
|
java.lang.String[] |
getKeyArray()
Returns the main key and the aliases as an array.
|
java.lang.String |
getKeysAsString()
Returns the main key and the aliases separated by a |.
|
java.lang.String |
getMainKey()
Returns the main key of the signature.
|
ParameterTuple |
getParameterTuple()
Returns the parameter tuple, including parameter keys, types and default values.
|
ScriptType |
getReturnValue()
Returns the return type of the signature.
|
java.lang.String |
getReturnValueAsString()
Returns the string representation of the return type, whereas no return type yields "void".
|
java.lang.String |
getStringRepresentation()
Returns a user-readable string representation of the object.
|
boolean |
isCreated()
Tells whether or not this instance was initialized.
|
java.lang.String |
toString() |
public ExecutionError createSignature(java.lang.String signatureString, ScriptSystemInterface<?,?> scriptSystem)
createSignature in interface SignatureInterfacesignatureString - the string to parse.scriptSystem - the script system to calculate default values.public ParameterTuple getParameterTuple()
SignatureInterfacegetParameterTuple in interface SignatureInterfacepublic boolean isCreated()
createSignature(java.lang.String, scriptinterface.ScriptSystemInterface<?, ?>) was called successfully.public java.lang.String getKeysAsString()
SignatureInterfacegetKeysAsString in interface SignatureInterfacepublic java.lang.String getMainKey()
SignatureInterfacegetMainKey in interface SignatureInterfacepublic java.lang.String[] getKeyArray()
SignatureInterfacegetKeyArray in interface SignatureInterfacepublic ScriptType getReturnValue()
public java.lang.String getReturnValueAsString()
SignatureInterfacegetReturnValueAsString in interface SignatureInterfacepublic java.lang.String getStringRepresentation()
StringRepresentationgetStringRepresentation in interface StringRepresentationpublic java.lang.String toString()
toString in class java.lang.Object