Class ClassInfo

java.lang.Object
com.jme3.network.service.rmi.ClassInfo

public final class ClassInfo extends Object
Internal information about a shared class. This is the information that is sent over the wire for shared types.
Author:
Paul Speed
  • Constructor Details

    • ClassInfo

      public ClassInfo()
      For serialization only.
    • ClassInfo

      public ClassInfo(short typeId, Class type)
      Creates shared class metadata for the specified type.
      Parameters:
      typeId - the network id assigned to the shared type
      type - the reflected shared interface type
  • Method Details

    • getName

      public String getName()
      Returns the binary name of the shared type.
      Returns:
      the shared type name
    • getType

      public Class getType()
      Resolves the shared type into a Class.
      Returns:
      the resolved class
    • getId

      public short getId()
      Returns the network id assigned to this type.
      Returns:
      the type id
    • getMethod

      public MethodInfo getMethod(short id)
      Returns the method metadata associated with the specified id.
      Parameters:
      id - the method id
      Returns:
      the matching method metadata
    • getMethod

      public MethodInfo getMethod(Method m)
      Finds method metadata matching the specified reflected method.
      Parameters:
      m - the reflected method
      Returns:
      the matching method metadata, or null if none matches
    • getMethods

      public MethodInfo[] getMethods()
      Returns the method metadata array for this shared type.
      Returns:
      the shared method metadata
    • toString

      public String toString()
      Overrides:
      toString in class Object