public class ObjectIdentifier extends Object
| Constructor and Description |
|---|
ObjectIdentifier(ResolutionType resolutionType,
Type type,
Annotation... annotations) |
| Modifier and Type | Method and Description |
|---|---|
List<Annotation> |
getAnnotations() |
ResolutionType |
getResolutionType() |
Type |
getType()
Returns the type of the requested object.
|
Class<?> |
getTypeAsClass()
Returns the type of the requested object as a Class.
|
String |
toString() |
public ObjectIdentifier(ResolutionType resolutionType, Type type, Annotation... annotations)
public ResolutionType getResolutionType()
public Type getType()
Field.getGenericType() or similar: it is a Type, which may be a
Class for simple types or types where no generic information is provided, or it may be a
ParameterizedType for types with generic information.
Other extensions of Type are not supported by default.
Use getTypeAsClass() to get the type as a Class safely.
See ReflectionUtils for performing further operations on the type.
public Class<?> getTypeAsClass()
type is a type with
generic information, the returned class is the raw type without the generic information
(e.g. List if the type represents List<String>).public List<Annotation> getAnnotations()
Copyright © 2017. All rights reserved.