public interface ReferenceType extends Type
ReferenceType
represents a reference type: a type that
contains methods and fields and is a subtype of Object. Both class
types and array types are reference types.Modifier and Type | Method and Description |
---|---|
FieldInstance |
fieldNamed(java.lang.String name)
Return the field named
name , or null. |
java.util.List<? extends FieldInstance> |
fields()
Returns a list of fields declared in this type.
|
boolean |
hasMethod(MethodInstance mi)
Return true if the type has the given method.
|
boolean |
hasMethodImpl(MethodInstance mi)
Return true if the type has the given method.
|
java.util.List<? extends ReferenceType> |
interfaces()
Returns a list of all the type's interfaces.
|
java.util.List<? extends MemberInstance> |
members()
Return a list of all the type's members.
|
java.util.List<? extends MethodInstance> |
methods()
Returns a list of methods declared in this type.
|
java.util.List<? extends MethodInstance> |
methods(java.lang.String name,
java.util.List<? extends Type> argTypes)
Return the methods named
name with the given formal
parameter types, if any. |
java.util.List<? extends MethodInstance> |
methodsNamed(java.lang.String name)
Return the methods named
name , if any. |
Type |
superType()
Returns the supertype of this 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, print, toArray, toClass, toNull, toPrimitive, toReference, toString, translate, typeEquals, typeEqualsImpl
equalsImpl, isCanonical, position, typeSystem
Type superType()
java.util.List<? extends ReferenceType> interfaces()
Type
.Type
java.util.List<? extends MemberInstance> members()
MemberInstance
.MemberInstance
java.util.List<? extends FieldInstance> fields()
FieldInstance
.FieldInstance
java.util.List<? extends MethodInstance> methods()
MethodInstance
.MethodInstance
FieldInstance fieldNamed(java.lang.String name)
name
, or null.java.util.List<? extends MethodInstance> methodsNamed(java.lang.String name)
name
, if any.name
- Name of the method to search for.MethodInstance
.MethodInstance
java.util.List<? extends MethodInstance> methods(java.lang.String name, java.util.List<? extends Type> 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
boolean hasMethod(MethodInstance mi)
boolean hasMethodImpl(MethodInstance mi)