private static class ActorHandler.SampType
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.Class |
clazz_ |
static ActorHandler.SampType |
LIST
List type.
|
static ActorHandler.SampType |
MAP
Map type.
|
private java.lang.String |
name_ |
static ActorHandler.SampType |
STRING
String type.
|
Modifier | Constructor and Description |
---|---|
private |
SampType(java.lang.Class clazz,
java.lang.String name)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static ActorHandler.SampType |
getClassType(java.lang.Class clazz)
Returns the SampType corresponding to a given java class.
|
static ActorHandler.SampType |
getParamType(java.lang.Object param)
Returns the SampType corresponding to a given object.
|
java.lang.Class |
getTypeClass()
Returns the java class corresponding to this type.
|
java.lang.String |
toString()
Returns the SAMP name for this type.
|
public static final ActorHandler.SampType STRING
public static final ActorHandler.SampType LIST
public static final ActorHandler.SampType MAP
private final java.lang.Class clazz_
private final java.lang.String name_
private SampType(java.lang.Class clazz, java.lang.String name)
clazz
- java classname
- name of SAMP typepublic java.lang.Class getTypeClass()
public java.lang.String toString()
toString
in class java.lang.Object
public static ActorHandler.SampType getClassType(java.lang.Class clazz)
clazz
- classpublic static ActorHandler.SampType getParamType(java.lang.Object param)
param
- object
return SAMP type