| spoon.reflect.reference.CtReference
All known Subclasses: spoon.support.reflect.reference.CtReferenceImpl,
CtReference | public interface CtReference extends FactoryAccessor,Comparable<CtReference>(Code) | | This is the root inferface for program element references. References can
point to program element reified in the metamodel or not. In the latter case,
introspection methods fall back on runtime reflection (java.lang.reflect )
to access the program information, as long as available in the classpath.
See Also: spoon.reflect.declaration.CtElement |
getAnnotation | A getAnnotation(Class<A> annotationType)(Code) | | Searches for an annotation defined on this element.
Parameters: annotationType - the annotation type to search for a proxy to the annotation or null if not found |
getAnnotations | Annotation[] getAnnotations()(Code) | | Gets all the annotations defined on this element.
an array of annotation proxies |
getDeclaration | CtElement getDeclaration()(Code) | | Tries to get the declaration that corresponds to the referenced element.
referenced element or null if element does not exist |
getSimpleName | String getSimpleName()(Code) | | Gets the simple name of referenced element.
|
setSimpleName | void setSimpleName(String simpleName)(Code) | | Sets the name of referenced element.
|
|
|