public class BaseTypeInfo extends BaseFeatureInfo implements ITypeInfo
ITypeInfo.FINDIAnnotatedFeatureInfo.IAnnotationInfoHelperIAttributedFeatureInfo.MODIFIERTYPEINFO_EXTANNOTATION_HELPER| Constructor and Description |
|---|
BaseTypeInfo(IType type) |
| Modifier and Type | Method and 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() |
List<IAnnotationInfo> |
getDeclaredAnnotations() |
IEventInfo |
getEvent(CharSequence event)
Get an event mapped to the specified name.
|
List<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() |
String |
getName()
Gets the programmatic name or identifier of this feature.
|
List<? extends IPropertyInfo> |
getProperties() |
IPropertyInfo |
getProperty(CharSequence propName)
Get a property mapped to the specified name.
|
boolean |
isStatic()
True if this feature is static, meaning the feature is not specific to a
particular instance of the feature's containing type.
|
getAnnotation, getAnnotations, getAnnotationsOfType, getContainer, getDeprecatedReason, getDescription, getDisplayName, getOwnersType, getParamTypes, getSuperAnnotatedElements, hasAnnotation, hasDeclaredAnnotation, isAbstract, isDefaultImpl, isDeprecated, isFinal, isHidden, isInternal, isInternalAPI, isPrivate, isProtected, isPublic, isReified, isScriptable, isVisible, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAnnotation, getAnnotations, getAnnotationsOfType, getDeprecatedReason, hasAnnotation, hasDeclaredAnnotation, isDefaultImpl, isDeprecatedgetContainer, getDescription, getDisplayName, getLocationInfo, getOwnersTypepublic BaseTypeInfo(IType type)
public List<IAnnotationInfo> getDeclaredAnnotations()
getDeclaredAnnotations in interface IAnnotatedFeatureInfopublic boolean isStatic()
IAttributedFeatureInfoisStatic in interface IAttributedFeatureInfopublic String getName()
IFeatureInfogetName in interface IFeatureInfopublic List<? extends IPropertyInfo> getProperties()
getProperties in interface ITypeInfoIPropertyInfo
instances. The list is sorted ascending by name. Returns an empty list if
there are no properties.public IPropertyInfo getProperty(CharSequence propName)
ITypeInfogetProperty in interface ITypeInfopropName - The property name.public MethodList getMethods()
getMethods in interface ITypeInfoIMethodInfo
instances. The list is sorted ascending by name. Returns an empty list if
there are no methods.public IMethodInfo getMethod(CharSequence methodName, IType... params)
ITypeInfoparams must exactly match those of the target
method in number, order, and type. If null, params is treated
as an empty array.public IMethodInfo getCallableMethod(CharSequence method, IType... params)
ITypeInfogetCallableMethod in interface ITypeInfomethod - 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.public List<? extends IConstructorInfo> getConstructors()
getConstructors in interface ITypeInfoIConstructorInfo
instances. The list is sorted ascending by name. Returns an empty list if
there are no constructors.public IConstructorInfo getConstructor(IType... params)
ITypeInfogetConstructor in interface ITypeInfoparams - Represents the exact number, order, and type of parameters
in the constructor. A null value here is treated as an empty array.public IConstructorInfo getCallableConstructor(IType... params)
ITypeInfogetCallableConstructor in interface ITypeInfoparams - Represents the exact number, order, and type of parameters
in the constructor. A null value here is treated as an empty array.public List<IEventInfo> getEvents()
public IEventInfo getEvent(CharSequence event)
ITypeInfoCopyright © 2021. All rights reserved.