com.moesol.generator
Class Callable

java.lang.Object
  extended by com.moesol.generator.Callable
Direct Known Subclasses:
ConstructorCallable, MethodCallable

public abstract class Callable
extends Object

Encapsulate a Method or Constructor


Field Summary
static int CLASS
          Tell getKeyString to include the class name
static int METHOD
          Tell getKeyString to include the method name
static int PACKAGE
          Tell getKeyString to include the package name
static int PARAMETERS
          Tell getKeyString to include the parameters
static int WILD
          Tell getKeyString to include the wildcard
 
Constructor Summary
Callable()
           
 
Method Summary
abstract  Class getDeclaringClass()
          See Method getDeclaringClass
abstract  Class[] getExceptionTypes()
          See Method getExceptionTypes
 String getKeyString(int parts)
          Build a lookup string based on which bits are set in parts.
abstract  int getModifiers()
          See Method getModifiers
abstract  String getName()
          See Method getName
abstract  Class[] getParameterTypes()
          See Method getParameterTypes
abstract  Class getReturnType()
          See Method getReturnType
abstract  boolean isImpl()
          Determine if the method is a Java implementation method (if the name contains $ then return true).
abstract  boolean isOverloaded()
          Determine if the declaring class has other methods with the same name, but different parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PACKAGE

public static final int PACKAGE
Tell getKeyString to include the package name

See Also:
Constant Field Values

CLASS

public static final int CLASS
Tell getKeyString to include the class name

See Also:
Constant Field Values

METHOD

public static final int METHOD
Tell getKeyString to include the method name

See Also:
Constant Field Values

PARAMETERS

public static final int PARAMETERS
Tell getKeyString to include the parameters

See Also:
Constant Field Values

WILD

public static final int WILD
Tell getKeyString to include the wildcard

See Also:
Constant Field Values
Constructor Detail

Callable

public Callable()
Method Detail

getDeclaringClass

public abstract Class getDeclaringClass()
See Method getDeclaringClass

Returns:

getReturnType

public abstract Class getReturnType()
See Method getReturnType

Returns:

getParameterTypes

public abstract Class[] getParameterTypes()
See Method getParameterTypes

Returns:

getExceptionTypes

public abstract Class[] getExceptionTypes()
See Method getExceptionTypes

Returns:

getName

public abstract String getName()
See Method getName

Returns:

getModifiers

public abstract int getModifiers()
See Method getModifiers

Returns:

isOverloaded

public abstract boolean isOverloaded()
Determine if the declaring class has other methods with the same name, but different parameters.

Returns:

isImpl

public abstract boolean isImpl()
Determine if the method is a Java implementation method (if the name contains $ then return true).

Returns:

getKeyString

public String getKeyString(int parts)
                    throws ApplyException
Build a lookup string based on which bits are set in parts.

Parameters:
parts - parts to include in result.
Returns:
built string
Throws:
ApplyException


Copyright © 2004 Moebius Solutions, Inc. All Rights Reserved.