Package org.protelis.lang.datatype
Class JVMEntity
- java.lang.Object
-
- org.protelis.lang.datatype.JVMEntity
-
- All Implemented Interfaces:
java.io.Serializable
public final class JVMEntity extends java.lang.Object implements java.io.SerializableA runtime Protelis view of aJvmFeature.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetMemberName()java.lang.Class<?>getType()java.lang.ObjectgetValue()java.lang.StringtoString()
-
-
-
Constructor Detail
-
JVMEntity
public JVMEntity(org.eclipse.xtext.common.types.JvmFeature feature)
- Parameters:
feature- the feature to be used at runtime
-
JVMEntity
public JVMEntity(java.lang.reflect.Method method)
- Parameters:
method- theMethodthat thisJVMEntityrepresents
-
-
Method Detail
-
getMemberName
public java.lang.String getMemberName()
- Returns:
- the simple name of this entity
-
getType
public java.lang.Class<?> getType()
- Returns:
- The type this entity belongs to
-
getValue
public java.lang.Object getValue()
- Returns:
- the resolution of the entity: returns this in case of callable entity (such as a method), and the value of the referenced field otherwise.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-