|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjparse.CompiledConstructor
Information on a Java constructor defined in a Java class file
Field Summary | |
private Constructor |
theConstructor
The constructor object wrapped by this CompiledConstructor
object |
Constructor Summary | |
(package private) |
CompiledConstructor(Constructor cons)
Create a new CompiledConstructor object |
Method Summary | |
Constructor |
bestMatch(Constructor cons)
Find the best match, given two matching constructors |
Type |
getDeclaringClass()
Returns the Type object representing the class or
interface that declares the constructor represented by this object. |
Type[] |
getExceptionTypes()
Returns an array of Type objects that represent the types
of the exceptions declared to be thrown by this constructor. |
int |
getModifiers()
Returns the Java language modifiers for the constructor represented by this object, as an integer. |
String |
getName()
Return the name of this constructor |
Type[] |
getParameterTypes()
Returns an array of Type objects that represent the formal
parameter types, in declaration order, of this constructor. |
boolean |
match(Type[] params,
Type caller)
Determines whether this constructor matches the parameters given by a caller |
String |
toString()
Return a string describing this CompiledConstructor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private final Constructor theConstructor
CompiledConstructor
object
Constructor Detail |
CompiledConstructor(Constructor cons)
CompiledConstructor
object
cons
- the Constructor
object to wrapMethod Detail |
public Type getDeclaringClass()
Type
object representing the class or
interface that declares the constructor represented by this object.
getDeclaringClass
in interface Constructor
Type
of the declaring classpublic String getName()
public int getModifiers()
Modifier
class should be used to
decode the modifiers.
getModifiers
in interface Constructor
public Type[] getParameterTypes()
Type
objects that represent the formal
parameter types, in declaration order, of this constructor. Returns an
array of length 0 if the underlying constructor takes no parameters.
getParameterTypes
in interface Constructor
public Type[] getExceptionTypes()
Type
objects that represent the types
of the exceptions declared to be thrown by this constructor. Returns
an array of length 0 if the constructor declares no exceptions in its
throws
clause.
getExceptionTypes
in interface HasExceptions
public boolean match(Type[] params, Type caller)
match
in interface Constructor
params
- the types of the parameters to the constructorcaller
- the type of the caller
true
if this constructor matches,
false
otherwisepublic Constructor bestMatch(Constructor cons)
bestMatch
in interface Constructor
cons
- the other constructor to compare
null
if neither matches bestpublic String toString()
CompiledConstructor
CompiledConstructor
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |