T
- class of the objects that the type is used forpublic interface IType<T> extends IDescribable
member accessors
. If so, then items of the same type are expected to
share the same behavior when accessed by accessors.
Analogous to Class
in the Java type system.
Modifier and Type | Method and Description |
---|---|
<M> IMemberAccessor<M,T> |
getAccessor(IAccessorKey<M> attribute)
Internal low-level mechanism for retrieving a member accessor for a type, or null if not
available.
|
Map<IAccessorKey<?>,? extends IDescribable> |
getAccessorKeys()
Get keys for the accessors that this type knows of.
|
List<IAttribute<?>> |
getAttributes()
Deprecated.
|
String |
getIdentifier()
String identifying the type.
|
boolean |
hasAttribute(ICanonicalAccessorFactory<?> attribute)
|
getDescription, getName
@Deprecated List<IAttribute<?>> getAttributes()
Map<IAccessorKey<?>,? extends IDescribable> getAccessorKeys()
Should only be used for low level type inspection. Iterators etc. should use a collection of
predefined attributes
.
boolean hasAttribute(ICanonicalAccessorFactory<?> attribute)
attribute
can return an accessor
for this type
. This method is semantically equivalent to
attribute.getAccessor(type)
!= null
,
but may be cheaper.attribute
- attribute to checktrue
if the attribute can return an accessor for this type, false
if
not<M> IMemberAccessor<M,T> getAccessor(IAccessorKey<M> attribute)
This is only intended to be used by implementors of IAccessorFactory
. All other usage
should be replaced with ICanonicalAccessorFactory.getAccessor(IType)
call to pre-defined accessors.
M
- accessor value typeattribute
- the identifier for the fieldString getIdentifier()
Copyright © 2019. All rights reserved.