Package gw.lang.reflect
Interface IPropertyInfo
-
- All Superinterfaces:
IAnnotatedFeatureInfo
,IAttributedFeatureInfo
,IFeatureInfo
,IIntrinsicTypeReference
- All Known Subinterfaces:
IExpansionPropertyInfo
,IGosuPropertyInfo
,IGosuVarPropertyInfo
,IJavaBasePropertyInfo
,IJavaFieldPropertyInfo
,IJavaPropertyInfo
,IPropertiesPropertyInfo
,IPropertyInfoDelegate
,ITypeInfoPropertyInfo
- All Known Implementing Classes:
ArrayExpansionPropertyInfo
,DynamicPropertyInfo
,GosuPropertyInfo
,GosuVarPropertyInfo
,JavaFieldPropertyInfo
,JavaPropertyInfo
,LengthProperty
,MetaPropertyInfoDelegate
,MetaTypeTypeInfo.TypeProperty
,PackagePropertyInfo
,ParameterizedGosuPropertyInfo
,PropertyInfoBase
,PropertyInfoBuilder.BuiltPropertyInfo
,PropertyInfoDelegate
,StaticPropertyInfo
,TypePropertyInfo
public interface IPropertyInfo extends IAttributedFeatureInfo, IIntrinsicTypeReference
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface gw.lang.reflect.IAnnotatedFeatureInfo
IAnnotatedFeatureInfo.IAnnotationInfoHelper
-
Nested classes/interfaces inherited from interface gw.lang.reflect.IAttributedFeatureInfo
IAttributedFeatureInfo.MODIFIER
-
-
Field Summary
-
Fields inherited from interface gw.lang.reflect.IAnnotatedFeatureInfo
ANNOTATION_HELPER
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description IPropertyAccessor
getAccessor()
IPresentationInfo
getPresentationInfo()
boolean
isReadable()
default boolean
isReadable(IType whosAskin)
boolean
isWritable()
boolean
isWritable(IType whosAskin)
-
Methods inherited from interface gw.lang.reflect.IAnnotatedFeatureInfo
getAnnotation, getAnnotations, getAnnotationsOfType, getDeclaredAnnotations, getDeprecatedReason, hasAnnotation, hasDeclaredAnnotation, isDefaultImpl, isDeprecated
-
Methods inherited from interface gw.lang.reflect.IAttributedFeatureInfo
isAbstract, isFinal, isHidden, isInternal, isPrivate, isProtected, isPublic, isReified, isScriptable, isStatic, isVisible
-
Methods inherited from interface gw.lang.reflect.IFeatureInfo
getContainer, getDescription, getDisplayName, getLocationInfo, getName, getOwnersType
-
Methods inherited from interface gw.lang.reflect.IIntrinsicTypeReference
getAssignableFeatureType, getFeatureType
-
-
-
-
Method Detail
-
isReadable
boolean isReadable()
- Returns:
- true if the property is readable given the visibility constraint passed in, false otherwise.
-
isReadable
default boolean isReadable(IType whosAskin)
-
isWritable
boolean isWritable()
- Returns:
- True if the property is writable given the visibility constraint passed in, false otherwise.
-
isWritable
boolean isWritable(IType whosAskin)
- Parameters:
whosAskin
- The type querying the property writability. For example, passing in the type the property is on will allow properties that have private access in the setter to be written to. Passing in an unrelated type will only allow properties that are to be written to.- Returns:
- True if the property is writable given the visibility constraint passed in, false otherwise.
-
getAccessor
IPropertyAccessor getAccessor()
- Returns:
- the PropertyAccessor (for getting and setting) this property.
-
getPresentationInfo
IPresentationInfo getPresentationInfo()
-
-