Package gw.lang.reflect
Interface ITypeInfo
-
- All Superinterfaces:
IAnnotatedFeatureInfo
,IFeatureInfo
- All Known Subinterfaces:
IGosuClassTypeInfo
,IJavaTypeInfo
,IRelativeTypeInfo
- All Known Implementing Classes:
BaseHandBuiltTypeInfo
,BaseJavaTypeInfo
,BaseTypeInfo
,CompoundTypeInfo
,DefaultArrayTypeInfo
,DynamicTypeInfo
,ErrorTypeInfo
,FeatureManagerTypeInfoBase
,FunctionTypeInfo
,GosuClassTypeInfo
,GosuFragmentTypeInfo
,ITypeLoaderTypeInfo
,JavaTypeInfo
,MetaTypeTypeInfo
,NamespaceTypeInfo
,PackageTypeInfo
,PropertiesTypeInfo
,TypeInfoBase
,TypeInPackageTypeInfo
public interface ITypeInfo extends IAnnotatedFeatureInfo
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ITypeInfo.FIND
A 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 String
TYPEINFO_EXT
-
Fields inherited from interface gw.lang.reflect.IAnnotatedFeatureInfo
ANNOTATION_HELPER
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IConstructorInfo
getCallableConstructor(IType... params)
Returns a IConstructorInfo matching the specified parameter types or null if no match is found.IMethodInfo
getCallableMethod(CharSequence method, IType... params)
Returns a IMethodInfo matching the specified name and has parameter types that produce the best match.IConstructorInfo
getConstructor(IType... params)
Returns a IConstructorInfo that has parameter types that produce the best match.List<? extends IConstructorInfo>
getConstructors()
IEventInfo
getEvent(CharSequence event)
Get an event mapped to the specified name.List<? extends IEventInfo>
getEvents()
IMethodInfo
getMethod(CharSequence methodName, IType... params)
Returns a IMethodInfo matching the specified name and parameter types or null if no match is found.MethodList
getMethods()
List<? extends IPropertyInfo>
getProperties()
IPropertyInfo
getProperty(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
IPropertyInfo
instances. 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
IMethodInfo
instances. 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. Noteparams
must exactly match those of the target method in number, order, and type. If null,params
is 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
IConstructorInfo
instances. 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
IEventInfo
instances. 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.
-
-