Modifier and Type | Method | Description |
---|---|---|
Long |
_decode(String objectReference,
String applicationReference) |
Parse the given reference and create a corresponding
Java object for it.
|
String |
_encode(Object number) |
Encode the given object as valid AppleScript object reference.
|
TypeClass[] |
_getAppleScriptTypes() |
Array of AppleScript types that can be decoded
with this class.
|
Class<Long> |
_getJavaType() |
The type used in Java interfaces that this
Codec corresponds to. |
static Long |
getInstance() |
Null instance used for
Codec implementation. |
public static Long getInstance()
Codec
implementation.public Long _decode(String objectReference, String applicationReference)
Codec
Reference
object itself, but may also be a primitive, e.g. a string
or a number.public String _encode(Object number)
Codec
public Class<Long> _getJavaType()
Codec
Codec
corresponds to.
In case a primitive type is available (e.g. Integer.TYPE
), that type
should be returned._getJavaType
in interface Codec<Long>
public TypeClass[] _getAppleScriptTypes()
Codec
_getAppleScriptTypes
in interface Codec<Long>