Gets the child elements annotated with the given annotation type's
instances.
< Parameters: E - >the element's type Parameters: annotationType - the annotation type all the child elements annotated with an instance of the givenannotation type
Searches for an annotation (proxy) of the given class that annotates the
current element.
NOTE: before using an annotation proxy, you have to make sure that all
the types referenced by the annotation have been compiled and are in the
classpath so that accessed values can be converted into the actual types.
Otherwise, use
CtElement.getAnnotation(CtTypeReference) .
< Parameters: A - >the annotation's type Parameters: annotationType - the annotation's class if found, returns a proxy for this annotation
Gets the annotation element for a given annotation type.
Parameters: annotationType - the annotation type the annotation if this element is annotated by one annotation ofthe given type
Sets the position in the Java source file. Note that this information is
used to feed the line numbers in the generated bytecode if any (which is
useful for debugging).
Parameters: position - of this element in the input source files
Sets the position of this element and all its children element. Note that
this information is used to feed the line numbers in the generated
bytecode if any (which is useful for debugging).
Parameters: position - of this element and all children in the input source file