Package gw.lang.reflect
Interface ITypeInfo
-
- All Superinterfaces:
IAnnotatedFeatureInfo,IFeatureInfo
- All Known Subinterfaces:
IGosuClassTypeInfo,IJavaTypeInfo,IRelativeTypeInfo
- All Known Implementing Classes:
BaseHandBuiltTypeInfo,BaseJavaTypeInfo,BaseTypeInfo,DefaultArrayTypeInfo,FeatureManagerTypeInfoBase,FunctionTypeInfo,TypeInfoBase
public interface ITypeInfo extends IAnnotatedFeatureInfo
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classITypeInfo.FINDA general purpose class for finding methods and constructors.-
Nested classes/interfaces inherited from interface gw.lang.reflect.IAnnotatedFeatureInfo
IAnnotatedFeatureInfo.IAnnotationInfoHelper
-
-
Field Summary
Fields Modifier and Type Field Description static StringTYPEINFO_EXT-
Fields inherited from interface gw.lang.reflect.IAnnotatedFeatureInfo
ANNOTATION_HELPER
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IConstructorInfogetCallableConstructor(IType... params)Returns a IConstructorInfo matching the specified parameter types or null if no match is found.IMethodInfogetCallableMethod(CharSequence method, IType... params)Returns a IMethodInfo matching the specified name and has parameter types that produce the best match.IConstructorInfogetConstructor(IType... params)Returns a IConstructorInfo that has parameter types that produce the best match.List<? extends IConstructorInfo>getConstructors()IEventInfogetEvent(CharSequence event)Get an event mapped to the specified name.List<? extends IEventInfo>getEvents()IMethodInfogetMethod(CharSequence methodName, IType... params)Returns a IMethodInfo matching the specified name and parameter types or null if no match is found.MethodListgetMethods()List<? extends IPropertyInfo>getProperties()IPropertyInfogetProperty(CharSequence propName)Get a property mapped to the specified name.-
Methods inherited from interface gw.lang.reflect.IAnnotatedFeatureInfo
getAnnotation, getAnnotations, getAnnotationsOfType, getDeclaredAnnotations, getDeprecatedReason, hasAnnotation, hasDeclaredAnnotation, isDefaultImpl, isDeprecated
-
Methods inherited from interface gw.lang.reflect.IFeatureInfo
getContainer, getDescription, getDisplayName, getLocationInfo, getName, getOwnersType
-
-
-
-
Field Detail
-
TYPEINFO_EXT
static final String TYPEINFO_EXT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getProperties
List<? extends IPropertyInfo> getProperties()
- Returns:
- An unmodifiable random access list of
IPropertyInfoinstances. The list is sorted ascending by name. Returns an empty list if there are no properties.
-
getProperty
IPropertyInfo getProperty(CharSequence propName)
Get a property mapped to the specified name.- Parameters:
propName- The property name.- Returns:
- An IPropertyInfo corresponding to the property name.
-
getMethods
MethodList getMethods()
- Returns:
- An unmodifiable random access list of
IMethodInfoinstances. The list is sorted ascending by name. Returns an empty list if there are no methods.
-
getMethod
IMethodInfo getMethod(CharSequence methodName, IType... params)
Returns a IMethodInfo matching the specified name and parameter types or null if no match is found. Noteparamsmust exactly match those of the target method in number, order, and type. If null,paramsis treated as an empty array.- Parameters:
methodName- The name of the method to find.params- Represents the exact number, order, and type of parameters in the method. A null value here is treated as an empty array.- Returns:
- A IMethodInfo matching the name and parameter types.
-
getCallableMethod
IMethodInfo getCallableMethod(CharSequence method, IType... params)
Returns a IMethodInfo matching the specified name and has parameter types that produce the best match. If there is a tie with method names then this will throw an illegal argument exception.- Parameters:
method- The name of the method to find.params- Represents the exact number, order, and type of parameters in the method. A null value here is treated as an empty array.- Returns:
- A IMethodInfo matching the name and parameter types.
-
getConstructors
List<? extends IConstructorInfo> getConstructors()
- Returns:
- An unmodifiable random access list of
IConstructorInfoinstances. The list is sorted ascending by name. Returns an empty list if there are no constructors.
-
getConstructor
IConstructorInfo getConstructor(IType... params)
Returns a IConstructorInfo that has parameter types that produce the best match. If there is a tie with method names then this will throw an illegal argument exception.- Parameters:
params- Represents the exact number, order, and type of parameters in the constructor. A null value here is treated as an empty array.- Returns:
- A IConstructorInfo matching the parameter types.
-
getCallableConstructor
IConstructorInfo getCallableConstructor(IType... params)
Returns a IConstructorInfo matching the specified parameter types or null if no match is found.- Parameters:
params- Represents the exact number, order, and type of parameters in the constructor. A null value here is treated as an empty array.- Returns:
- A IConstructorInfo matching the parameter types.
-
getEvents
List<? extends IEventInfo> getEvents()
- Returns:
- An unmodifiable random access list of
IEventInfoinstances. The list is sorted ascending by name. Returns an empty list if ther are no events.
-
getEvent
IEventInfo getEvent(CharSequence event)
Get an event mapped to the specified name.- Parameters:
event- The event name.- Returns:
- An IEventInfo corresponding to the event name.
-
-