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.
|
java.util.Map<IAccessorKey<?>,? extends IDescribable> |
getAccessorKeys()
Get keys for the accessors that this type knows of.
|
java.util.List<IAttribute<?>> |
getAttributes()
Deprecated.
|
java.lang.String |
getIdentifier()
String identifying the type.
|
boolean |
hasAttribute(ICanonicalAccessorFactory<?> attribute)
|
getDescription, getName@Deprecated java.util.List<IAttribute<?>> getAttributes()
java.util.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 fieldjava.lang.String getIdentifier()