Interface XElement
- All Known Subinterfaces:
XClass, XConstructor, XEnumConstant, XExecutable, XField, XMember, XMethod
- All Known Implementing Classes:
MirrorTypeFactory.MirrorArray, MirrorTypeFactory.MirrorClass, MirrorTypeFactory.MirrorConstructor, MirrorTypeFactory.MirrorEnumConstant, MirrorTypeFactory.MirrorField, MirrorTypeFactory.MirrorMethod, MirrorTypeFactory.MirrorPrimitiveType, ReflectionTypeFactory.ReflectionClass, ReflectionTypeFactory.ReflectionConstructor, ReflectionTypeFactory.ReflectionEnumConstant, ReflectionTypeFactory.ReflectionField, ReflectionTypeFactory.ReflectionMethod
public interface XElement
A Java Program element.
- Since:
- 4.3
-
Method Summary
Modifier and TypeMethodDescription<A extends Annotation>
AgetAnnotation(Class<A> annotationClass) Returns this element's annotation if present.<A extends Annotation>
A[]getAnnotationsByType(Class<A> annotationClass) Collect and concatenate the description text from the (possibly multiple)@ProtoDoc.valueannotations found on the element, in order of occurrence.intThe modifiers, as per java.lang.reflect.Modifier.getName()default XClassgetTypeArgument(int i) default booleanisFinal()default booleandefault booleanisPublic()default booleanisStatic()
-
Method Details
-
getName
String getName() -
getModifiers
int getModifiers()The modifiers, as per java.lang.reflect.Modifier. -
isStatic
default boolean isStatic() -
isFinal
default boolean isFinal() -
isPublic
default boolean isPublic() -
isPrivate
default boolean isPrivate() -
getAnnotation
Returns this element's annotation if present. -
getAnnotationsByType
-
getTypeArgument
-
getDocumentation
String getDocumentation()Collect and concatenate the description text from the (possibly multiple)@ProtoDoc.valueannotations found on the element, in order of occurrence.- Returns:
- the documentation or
nullif no doc or empty doc present
-