|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectariba.util.fieldtype.JavaTypeProvider.JavaTypeInfo
public static class JavaTypeProvider.JavaTypeInfo
Subclass of TypeInfo for Java class.
| Field Summary |
|---|
| Fields inherited from interface ariba.util.fieldtype.TypeInfo |
|---|
AccessibilityPrivate, AccessibilityPublic, AccessibilitySafe |
| Method Summary | |
|---|---|
MethodInfo |
findAppropriateMethodInfo(TypeRetriever retriever,
String name,
List parameters,
boolean staticOnly)
|
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)
|
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. |
Class |
getProxiedClass()
|
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. |
PropertyInfo |
resolvePropertyForName(TypeRetriever retriever,
String name)
|
TypeInfo |
resolveTypeForName(TypeRetriever retriever,
String name)
|
void |
setProxiedClass(Class proxiedClass)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public String getName()
TypeInfo
getName in interface TypeInfopublic String getImplementationName()
TypeInfo
getImplementationName in interface TypeInfopublic Class getProxiedClass()
public void setProxiedClass(Class proxiedClass)
public TypeInfo getElementType()
TypeInfoTypeInfo of the element type. Otherwise, this method
return false.
getElementType in interface TypeInfoTypeInfo of element type. Otherwise, return null.TypeInfo.getElementType()public boolean isAssignableFrom(TypeInfo other)
TypeInfothis type is asssignable from
other type. This method should also handle
auto-boxing and auto-unboxing for primitive types.
isAssignableFrom in interface TypeInfoother - - the type to assign to this type.
public boolean isCompatible(TypeInfo other)
TypeInfo
isCompatible in interface TypeInfoother - - the other type to compare with this type.
public boolean isWideningTypeOf(TypeInfo other)
TypeInfothis
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.
isWideningTypeOf in interface TypeInfoother - - the other type to compare with this type.
public FieldInfo getField(TypeRetriever retriever,
String name)
TypeInfotype.
getField in interface TypeInforetriever - - A TypeRetriever for retriever type
information.name - - the name of the field
FieldInfo object representing the field.
public MethodInfo getMethod(TypeRetriever retriever,
String name,
List parameters)
public MethodInfo getMethod(TypeRetriever retriever,
String name,
List parameters,
boolean staticOnly)
TypeInfotype.
getMethod in interface TypeInforetriever - - A TypeRetriever for retriever type
information.name - - the name of the method
MethodInfo object representing the method.public Set getAllMethods(TypeRetriever retriever)
TypeInfotype.
getAllMethods in interface TypeInforetriever - - A TypeRetriever for retriever type
information.
Set of MethodInfo objects
representing all methods.public int getAccessibility()
TypeInfo
getAccessibility in interface TypeInfopublic String toString()
toString in class Objectpublic PropertyResolver getPropertyResolver()
TypeInfoPropertyResolver that can be used to resolve
property name.
getPropertyResolver in interface TypeInfoPropertyResovler
public TypeInfo resolveTypeForName(TypeRetriever retriever,
String name)
resolveTypeForName in interface PropertyResolver
public PropertyInfo resolvePropertyForName(TypeRetriever retriever,
String name)
resolvePropertyForName in interface PropertyResolver
public MethodInfo findAppropriateMethodInfo(TypeRetriever retriever,
String name,
List parameters,
boolean staticOnly)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||