|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A ReferenceType
represents a reference type: a type which
contains methods and fields and which is a subtype of Object.
Method Summary | |
FieldInstance |
fieldNamed(java.lang.String name)
Return the field named name , or null. |
java.util.List |
fields()
Return the type's fields. |
boolean |
hasMethod(MethodInstance mi)
Return the true if the type has the given method. |
boolean |
hasMethodImpl(MethodInstance mi)
Return the true if the type has the given method. |
java.util.List |
interfaces()
Return the type's interfaces. |
java.util.List |
methods()
Return the type's methods. |
java.util.List |
methods(java.lang.String name,
java.util.List argTypes)
Return the methods named name with the given formal
parameter types, if any. |
java.util.List |
methodsNamed(java.lang.String name)
Return the methods named name , if any. |
Type |
superType()
Return the type's super type. |
Methods inherited from interface polyglot.types.Type |
arrayOf, arrayOf, descendsFrom, descendsFromImpl, isArray, isBoolean, isByte, isCastValid, isCastValidImpl, isChar, isClass, isComparable, isDouble, isFloat, isImplicitCastValid, isImplicitCastValidImpl, isInt, isIntOrLess, isLong, isLongOrLess, isNull, isNumeric, isPrimitive, isReference, isShort, isSubtype, isSubtypeImpl, isThrowable, isUncheckedException, isVoid, numericConversionValid, numericConversionValid, numericConversionValidImpl, numericConversionValidImpl, toArray, toClass, toNull, toPrimitive, toReference, toString, translate |
Methods inherited from interface polyglot.types.Qualifier |
isPackage, isType, toPackage, toType |
Methods inherited from interface polyglot.types.TypeObject |
equalsImpl, isCanonical, position, typeSystem |
Methods inherited from interface polyglot.util.Copy |
copy |
Method Detail |
public Type superType()
public java.util.List interfaces()
Type
.Type
public java.util.List fields()
FieldInstance
.FieldInstance
public java.util.List methods()
MethodInstance
.MethodInstance
public FieldInstance fieldNamed(java.lang.String name)
name
, or null.
public java.util.List methodsNamed(java.lang.String name)
name
, if any.
name
- Name of the method to search for.
MethodInstance
.MethodInstance
public java.util.List methods(java.lang.String name, java.util.List argTypes)
name
with the given formal
parameter types, if any.
name
- Name of the method to search for.argTypes
- A list of Type
.
MethodInstance
.Type
,
MethodInstance
public boolean hasMethod(MethodInstance mi)
public boolean hasMethodImpl(MethodInstance mi)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |