|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xml.utils.synthetic.reflection.EntryPoint
API/behaviors shared between Constructors and Methods. They're mostly similar, except for what they proxy and a few specific calls (name, invoke/getInstance).
Field Summary | |
private StringBuffer |
body
Field body |
private Class |
declaringclass
Field declaringclass |
private Class[] |
exceptiontypes
Field exceptiontypes |
private String |
language
Field language |
private int |
modifiers
Field modifiers |
protected String |
name
Field name |
private String[] |
parameternames
Field parameternames |
private Class[] |
parametertypes
Field parametertypes |
(package private) Class[] |
realE
Field realE, realP |
protected Object |
realep
Field realep |
(package private) Class[] |
realP
Field realE, realP |
protected Class |
returntype
Field returntype |
Constructor Summary | |
|
EntryPoint(Class declaringclass)
Insert the method's description here. |
protected |
EntryPoint(Object ep)
Nonpublic constructor. |
protected |
EntryPoint(Object ep,
Class declaringclass)
Nonpublic constructor. |
Method Summary | |
void |
addExceptionType(Class exception)
Method addExceptionType |
void |
addParameter(Class type,
String name)
Method addParameter |
boolean |
equals(Object obj)
Compares this against the specified object. |
StringBuffer |
getBody()
Extension: For synthesis, we need a place to hang a method body. |
Class |
getDeclaringClass()
Returns the Class object representing the class that declares the constructor represented by this Constructor object. |
Class[] |
getExceptionTypes()
Returns an array of Class objects that represent the types of the checked exceptions thrown by the underlying constructor represented by this Constructor object. |
String |
getLanguage()
Extension: For synthesis, we need a place to hang a method body. |
int |
getModifiers()
Returns the Java language modifiers for the constructor represented by this Constructor object, as an integer. |
String |
getName()
Member method. |
String[] |
getParameterNames()
Method getParameterNames (getParameterNames) @return |
Class[] |
getParameterTypes()
Returns an array of Class objects that represent the formal parameter types, in declaration order, of the constructor represented by this Constructor object. |
Class |
getReturnType()
Returns the Class object representing the class that will be returned by this EntryPoint. |
abstract int |
hashCode()
Returns a hashcode for this Constructor. |
void |
setBody(String language,
StringBuffer body)
Extension: For synthesis, we need a place to hang a method body. |
void |
setDeclaringClass(Class declaringClass)
Assert the Class object representing the class that declares the constructor represented by this Constructor object. |
void |
setModifiers(int modifiers)
Should only be accepted before a "real" entrypoint is bound. |
void |
setName(String name)
Member method. |
String |
toSource(String basetab)
Generate Java code |
String |
toString()
Return a string describing this Constructor. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected Object realep
private Class declaringclass
protected Class returntype
private String[] parameternames
private Class[] parametertypes
private Class[] exceptiontypes
private int modifiers
protected String name
private StringBuffer body
private String language
Class[] realE
Class[] realP
Constructor Detail |
public EntryPoint(Class declaringclass)
Creation date: (12-27-99 2:31:39 PM)
declaringclass
- protected EntryPoint(Object ep, Class declaringclass) throws IllegalArgumentException
ep
- declaringclass
-
IllegalArgumentException
protected EntryPoint(Object ep) throws IllegalArgumentException
ep
-
IllegalArgumentException
Method Detail |
public boolean equals(Object obj)
equals
in class Object
obj
-
true
if this object is the same as the obj
argument; false
otherwise.Object.hashCode()
,
Hashtable
public Class getDeclaringClass()
getDeclaringClass
in interface Member
public Class getReturnType()
public Class[] getExceptionTypes()
public void addExceptionType(Class exception) throws SynthesisException
exception
-
SynthesisException
public int getModifiers()
getModifiers
in interface Member
public String getName()
public void setName(String name) throws SynthesisException
name
-
SynthesisException
public Class[] getParameterTypes()
public String[] getParameterNames()
public void addParameter(Class type, String name) throws SynthesisException
type
- name
-
SynthesisException
public abstract int hashCode()
hashCode
in class Object
Object.equals(java.lang.Object)
,
Hashtable
public void setDeclaringClass(Class declaringClass) throws SynthesisException
setDeclaringClass
in interface Member
declaringClass
-
SynthesisException
public void setModifiers(int modifiers) throws SynthesisException
setModifiers
in interface Member
modifiers
- int
SynthesisException
public String toString()
public java.util.Hashtable(int,float)
The only possible modifiers for constructors are the access modifiers public, protected or private. Only one of these may appear, or none if the constructor has default (package) access.
Methods will also display their checked exceptions.
toString
in class Object
public void setBody(String language, StringBuffer body) throws SynthesisException
language
- body
-
SynthesisException
public StringBuffer getBody()
public String getLanguage()
public String toSource(String basetab)
basetab
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |