|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ReferenceType
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 |
|---|
Type superType()
java.util.List interfaces()
Type.Typejava.util.List fields()
FieldInstance.FieldInstancejava.util.List methods()
MethodInstance.MethodInstanceFieldInstance fieldNamed(java.lang.String name)
name, or null.
java.util.List methodsNamed(java.lang.String name)
name, if any.
name - Name of the method to search for.
MethodInstance.MethodInstance
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,
MethodInstanceboolean hasMethod(MethodInstance mi)
boolean hasMethodImpl(MethodInstance mi)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||