Package serp.bytecode
Class Annotated
java.lang.Object
serp.bytecode.Attributes
serp.bytecode.Annotated
- All Implemented Interfaces:
BCEntity
An annotated entity.
- Author:
- Abe White
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDeclaredAnnotations(boolean add) Return runtime invisible annotation information for the entity.getDeclaredRuntimeAnnotations(boolean add) Return runtime visible annotation information for the entity.booleanRemove the runtime invisible annotations attribute for the entity.booleanRemove the runtime visible annotations attribute for the entity.Methods inherited from class serp.bytecode.Attributes
addAttribute, addAttribute, clearAttributes, getAttribute, getAttributes, getAttributes, removeAttribute, removeAttribute, setAttributesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface serp.bytecode.BCEntity
getClassLoader, getPool, getProject, isValid
-
Constructor Details
-
Annotated
public Annotated()
-
-
Method Details
-
getDeclaredAnnotations
Return runtime invisible annotation information for the entity. Acts internally through theAttributesinterface.- Parameters:
add- if true, a new annotations attribute will be added if not already present- Returns:
- the annotation information, or null if none and the
addparam is set to false
-
removeDeclaredAnnotations
public boolean removeDeclaredAnnotations()Remove the runtime invisible annotations attribute for the entity. Acts internally through theAttributesinterface.- Returns:
- true if there was an attribute to remove
-
getDeclaredRuntimeAnnotations
Return runtime visible annotation information for the entity. Acts internally through theAttributesinterface.- Parameters:
add- if true, a new runtime annotations attribute will be added if not already present- Returns:
- the annotation information, or null if none and the
addparam is set to false
-
removeDeclaredRuntimeAnnotations
public boolean removeDeclaredRuntimeAnnotations()Remove the runtime visible annotations attribute for the entity. Acts internally through theAttributesinterface.- Returns:
- true if there was an attribute to remove
-