|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CodeClass
Interface for Java classes within the bytecode generation framework. Any class (or interface) can be viewed as a CodeClass, whether it is pre-existing or being generated.
Method Summary | |
---|---|
CodeMethod |
getConstructor(CodeClass[] args)
Get a constructor by argument list. |
java.lang.String |
getDescriptor()
|
CodeField |
getFieldByName(java.lang.String name)
Get a field by its name. |
java.util.Set |
getFields()
Get all fields accessible through this class. |
java.util.List |
getInterfaces()
|
java.lang.String |
getJName()
|
CodeMethod |
getMethod(java.lang.String name,
CodeClass[] args)
Get a method by name and argument list. |
java.util.Set |
getMethods()
Get all methods declared by this class and its super classes, removing all super class methods that are over ridden. |
java.util.Set |
getMethodsByName(java.lang.String name)
Get the name of all methods that could be invoked through this class with a given name. |
int |
getModifiers()
Get the modifiers associated with the class. |
java.lang.String |
getName()
|
CodeClass |
getSuperClass()
|
boolean |
isArray()
Discover if the class is an array type. |
boolean |
isPrimitive()
Discover if the class represents a primitive type. |
Method Detail |
---|
java.lang.String getName()
java.lang.String getJName()
java.lang.String getDescriptor()
CodeClass getSuperClass()
java.util.List getInterfaces()
java.util.Set getMethods()
This should return methods, regardless of their accessability.
java.util.Set getMethodsByName(java.lang.String name)
name
- the name of the method
CodeMethod getMethod(java.lang.String name, CodeClass[] args) throws java.lang.NoSuchMethodException
name
- the name of the methodargs
- the arguments it takes
java.lang.NoSuchMethodException
- if there is no maching methodCodeMethod getConstructor(CodeClass[] args) throws java.lang.NoSuchMethodException
args
- the arguments it takes
java.lang.NoSuchMethodException
- if there is no matching constructorCodeField getFieldByName(java.lang.String name) throws java.lang.NoSuchFieldException
name
- the field name
java.lang.NoSuchFieldException
- if there is no field by that name accessible
through this classjava.util.Set getFields()
int getModifiers()
boolean isPrimitive()
boolean isArray()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |