Class JVMEntity

  • All Implemented Interfaces:
    java.io.Serializable

    public final class JVMEntity
    extends java.lang.Object
    implements java.io.Serializable
    A runtime Protelis view of a JvmFeature.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      JVMEntity​(java.lang.reflect.Method method)  
      JVMEntity​(org.eclipse.xtext.common.types.JvmFeature feature)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getMemberName()  
      java.lang.Class<?> getType()  
      java.lang.Object getValue()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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 - the Method that this JVMEntity represents
    • 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:
        toString in class java.lang.Object