com.caucho.ejb.cfg
Class ApiClass

java.lang.Object
  extended by com.caucho.ejb.cfg.ApiClass

public class ApiClass
extends java.lang.Object

Represents an interface class, either Local or Remote


Field Summary
static ApiClass ENTITY_BEAN
           
static ApiClass OBJECT
           
 
Constructor Summary
ApiClass(java.lang.Class apiClass)
          Creates a new api class
ApiClass(java.lang.Class apiClass, java.util.HashMap<java.lang.String,java.lang.reflect.Type> parentTypeMap)
          Creates a new api class
ApiClass(java.lang.Class apiClass, java.util.HashMap<java.lang.String,java.lang.reflect.Type> parentTypeMap, java.util.ArrayList<java.lang.reflect.Type> param)
          Creates a new api class
 
Method Summary
<A extends java.lang.annotation.Annotation>
A
getAnnotation(java.lang.Class<A> annType)
          Returns true if the annotation exists.
 java.lang.reflect.Constructor getConstructor(java.lang.Class[] param)
           
 java.lang.String getDeclarationName()
          Returns the declaration name
 java.lang.reflect.Field[] getFields()
          Returns the fields.
 java.util.ArrayList<ApiClass> getInterfaces()
          Returns the interfaces (should be ApiClass?)
 java.lang.Class getJavaClass()
           
 ApiMethod getMethod(ApiMethod method)
          Returns the matching method.
 ApiMethod getMethod(java.lang.reflect.Method method)
          Returns the matching method.
 ApiMethod getMethod(java.lang.String name, java.lang.Class[] param)
          Returns the matching method.
 java.util.ArrayList<ApiMethod> getMethods()
          Returns the methods.
 java.lang.String getName()
          Returns the classname.
 java.lang.String getSimpleName()
          Returns the short classname.
 java.util.HashMap<java.lang.String,java.lang.reflect.Type> getTypeMap()
          Returns the type map
 boolean hasMethod(java.lang.String name, java.lang.Class[] args)
          Returns true if the method exists
 boolean isAbstract()
          Returns true for an abstract class
 boolean isAnnotationPresent(java.lang.Class annType)
          Returns true if the annotation exists.
 boolean isFinal()
          Returns true for a final class
 boolean isInterface()
          Returns true for an interface
 boolean isPrimitive()
          Returns true for a primitive class
 boolean isPublic()
          Returns true for a public class.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

OBJECT

public static final ApiClass OBJECT

ENTITY_BEAN

public static final ApiClass ENTITY_BEAN
Constructor Detail

ApiClass

public ApiClass(java.lang.Class apiClass)
Creates a new api class

Parameters:
topClass - the api class

ApiClass

public ApiClass(java.lang.Class apiClass,
                java.util.HashMap<java.lang.String,java.lang.reflect.Type> parentTypeMap)
Creates a new api class

Parameters:
topClass - the api class

ApiClass

public ApiClass(java.lang.Class apiClass,
                java.util.HashMap<java.lang.String,java.lang.reflect.Type> parentTypeMap,
                java.util.ArrayList<java.lang.reflect.Type> param)
Creates a new api class

Parameters:
topClass - the api class
Method Detail

getName

public java.lang.String getName()
Returns the classname.


getSimpleName

public java.lang.String getSimpleName()
Returns the short classname.


getDeclarationName

public java.lang.String getDeclarationName()
Returns the declaration name


getTypeMap

public java.util.HashMap<java.lang.String,java.lang.reflect.Type> getTypeMap()
Returns the type map


getJavaClass

public java.lang.Class getJavaClass()

isPublic

public boolean isPublic()
Returns true for a public class.


isInterface

public boolean isInterface()
Returns true for an interface


isAbstract

public boolean isAbstract()
Returns true for an abstract class


isFinal

public boolean isFinal()
Returns true for a final class


isPrimitive

public boolean isPrimitive()
Returns true for a primitive class


getFields

public java.lang.reflect.Field[] getFields()
Returns the fields.


getInterfaces

public java.util.ArrayList<ApiClass> getInterfaces()
Returns the interfaces (should be ApiClass?)


getConstructor

public java.lang.reflect.Constructor getConstructor(java.lang.Class[] param)
                                             throws java.lang.NoSuchMethodException
Throws:
java.lang.NoSuchMethodException

getMethods

public java.util.ArrayList<ApiMethod> getMethods()
Returns the methods.


getMethod

public ApiMethod getMethod(java.lang.reflect.Method method)
Returns the matching method.


getMethod

public ApiMethod getMethod(ApiMethod method)
Returns the matching method.


hasMethod

public boolean hasMethod(java.lang.String name,
                         java.lang.Class[] args)
Returns true if the method exists


getMethod

public ApiMethod getMethod(java.lang.String name,
                           java.lang.Class[] param)
Returns the matching method.


isAnnotationPresent

public boolean isAnnotationPresent(java.lang.Class annType)
Returns true if the annotation exists.


getAnnotation

public <A extends java.lang.annotation.Annotation> A getAnnotation(java.lang.Class<A> annType)
Returns true if the annotation exists.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object