|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.roo.classpath.details.annotations.AnnotatedJavaType
public final class AnnotatedJavaType
Represents a JavaType
with zero or more annotations.
Constructor Summary | |
---|---|
AnnotatedJavaType(org.springframework.roo.model.JavaType javaType,
List<AnnotationMetadata> annotations)
Constructs an AnnotatedJavaType . |
Method Summary | |
---|---|
static List<org.springframework.roo.model.JavaType> |
convertFromAnnotatedJavaTypes(List<AnnotatedJavaType> annotatedJavaTypes)
Converts a non-null List of AnnotatedJavaTypes s into a List of equivalent JavaType s. |
static List<AnnotatedJavaType> |
convertFromJavaTypes(List<org.springframework.roo.model.JavaType> javaTypes)
Converts a non-null List of JavaTypes s into a List of equivalent AnnotatedJavaType s. |
List<AnnotationMetadata> |
getAnnotations()
|
org.springframework.roo.model.JavaType |
getJavaType()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AnnotatedJavaType(org.springframework.roo.model.JavaType javaType, List<AnnotationMetadata> annotations)
AnnotatedJavaType
.
javaType
- the type (required)annotations
- any annotations for the type (null is acceptable)Method Detail |
---|
public org.springframework.roo.model.JavaType getJavaType()
public List<AnnotationMetadata> getAnnotations()
public final String toString()
toString
in class Object
public static List<AnnotatedJavaType> convertFromJavaTypes(List<org.springframework.roo.model.JavaType> javaTypes)
List
of JavaTypes
s into a List
of equivalent AnnotatedJavaType
s.
Note that each returned AnnotatedJavaType
will have no annotation metadata, as the input JavaType
s
cannot store any such metadata.
javaTypes
- to convert (required)
AnnotatedJavaType
s (never returns null)public static List<org.springframework.roo.model.JavaType> convertFromAnnotatedJavaTypes(List<AnnotatedJavaType> annotatedJavaTypes)
List
of AnnotatedJavaTypes
s into a List
of equivalent JavaType
s.
Note the annotation metadata will be discarded, as it cannot be stored inside a JavaType
.
annotatedJavaTypes
- to convert (required)
AnnotatedJavaType
s, but without any actual annotations (never returns null)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |