|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Information on a Java constructor.
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. |
int |
getModifiers()
Returns the Java language modifiers for the constructor represented by this object, as an integer. |
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 |
Methods inherited from interface jparse.HasExceptions |
getExceptionTypes |
Method Detail |
public Type getDeclaringClass()
Type
object representing the class or
interface that declares the constructor represented by this object.
Type
of the declaring classpublic int getModifiers()
Modifier
class should be used to
decode the modifiers.
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.
public boolean match(Type[] params, Type caller)
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)
cons
- the other constructor to compare
null
if neither matches best
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |