|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TypeInfo
TypeInfo is an abstraction of a type of an underlying type system.
| Field Summary | |
|---|---|
static int |
AccessibilityPrivate
The accessiblity code for the type. AccessibilityPrivate - private accessiblity. |
static int |
AccessibilityPublic
|
static int |
AccessibilitySafe
|
| Method Summary | |
|---|---|
int |
getAccessibility()
Return the accessiblity code of this type. |
Set |
getAllMethods(TypeRetriever retriever)
Get all methods belong to this type. |
TypeInfo |
getElementType()
If this type is a collection of element type, this method returns the TypeInfo of the element type. |
FieldInfo |
getField(TypeRetriever retriever,
String name)
Get the field belongs to this type. |
String |
getImplementationName()
Get the implementation name. |
MethodInfo |
getMethod(TypeRetriever retriever,
String name,
List parameters,
boolean staticOnly)
Get the method belongs to this type. |
String |
getName()
Get the type name. |
PropertyResolver |
getPropertyResolver()
Create a PropertyResolver that can be used to resolve
property name. |
boolean |
isAssignableFrom(TypeInfo other)
This method tests if this type is asssignable from
other type. |
boolean |
isCompatible(TypeInfo other)
This method returns true if one type is assignable to another. |
boolean |
isWideningTypeOf(TypeInfo other)
This method returns true if one type can be widening to another. |
| Field Detail |
|---|
static final int AccessibilityPrivate
static final int AccessibilityPublic
static final int AccessibilitySafe
| Method Detail |
|---|
String getName()
String getImplementationName()
TypeInfo getElementType()
TypeInfo of the element type. Otherwise, this method
return false.
TypeInfo of element type. Otherwise, return null.boolean isAssignableFrom(TypeInfo other)
this type is asssignable from
other type. This method should also handle
auto-boxing and auto-unboxing for primitive types.
other - - the type to assign to this type.
boolean isCompatible(TypeInfo other)
other - - the other type to compare with this type.
boolean isWideningTypeOf(TypeInfo other)
this
type is a superclass of other type.
For primitive type, this method can also return true if the
other type can be promoted to this type using
java primitive widening. This method should also handle auto-boxing and
auto-unboxing for primitive types.
other - - the other type to compare with this type.
int getAccessibility()
FieldInfo getField(TypeRetriever retriever,
String name)
type.
retriever - - A TypeRetriever for retriever type
information.name - - the name of the field
FieldInfo object representing the field.
MethodInfo getMethod(TypeRetriever retriever,
String name,
List parameters,
boolean staticOnly)
type.
retriever - - A TypeRetriever for retriever type
information.name - - the name of the method
MethodInfo object representing the method.Set getAllMethods(TypeRetriever retriever)
type.
retriever - - A TypeRetriever for retriever type
information.
Set of MethodInfo objects
representing all methods.PropertyResolver getPropertyResolver()
PropertyResolver that can be used to resolve
property name.
PropertyResovler
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||