Package org.aspectj.asm
Interface IProgramElement
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
ProgramElement
Represents program elements in the AspectJ containment hierarchy.
- Author:
- Mik Kersten
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classUses "typesafe enum" pattern.static classstatic classUses "typesafe enum" pattern.static classUses "typesafe enum" pattern. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChild(IProgramElement child) voidaddFullyQualifiedName(String fqname) This correponds to both method return types and field types.getCorrespondingType(boolean getFullyQualifiedType) The format of the string handle is not specified, but is stable across compilation sessions.getHandleIdentifier(boolean create) getKind()getModel()getName()List<char[]>List<char[]>intString[]booleanbooleanbooleanbooleanbooleanbooleanremoveChild(IProgramElement child) voidsetAnnotationRemover(boolean isRemover) voidsetAnnotationStyleDeclaration(boolean b) voidsetAnnotationType(String fullyQualifiedannotationType) voidsetBytecodeName(String bytecodeName) voidsetBytecodeSignature(String bytecodeSignature) voidsetChildren(List<IProgramElement> children) voidsetCorrespondingType(String returnType) voidsetDeclareParentsMap(Map<String, List<String>> newmap) voidsetDetails(String details) voidvoidsetFormalComment(String comment) voidsetHandleIdentifier(String handle) voidsetImplementor(boolean value) voidsetKind(IProgramElement.Kind kind) voidsetMessage(IMessage message) voidsetModifiers(int i) voidvoidsetOverrider(boolean value) voidsetParameterNames(List<String> list) voidsetParameterSignatures(List<char[]> list, List<String> paramSourceRefs) voidsetParent(IProgramElement parent) voidsetParentTypes(List<String> parentTypes) voidsetRunnable(boolean value) voidsetSourceLocation(ISourceLocation sourceLocation) voidsetSourceSignature(String string) Includes name, parameter types (if any) and details (if any).toLabelString(boolean getFullyQualifiedArgTypes) Includes information about the origin of the node.toLinkLabelString(boolean getFullyQualifiedArgTypes) toSignatureString(boolean getFullyQualifiedArgTypes) toString()walk(HierarchyWalker walker)
-
Method Details
-
getChildren
List<IProgramElement> getChildren() -
setChildren
-
addChild
-
removeChild
-
setExtraInfo
-
getExtraInfo
IProgramElement.ExtraInformation getExtraInfo() -
getParent
IProgramElement getParent() -
setParent
-
setParentTypes
-
getParentTypes
-
getName
String getName() -
setName
-
getDetails
String getDetails() -
setDetails
-
getKind
IProgramElement.Kind getKind() -
setKind
-
getModifiers
List<IProgramElement.Modifiers> getModifiers() -
setModifiers
void setModifiers(int i) -
getAccessibility
IProgramElement.Accessibility getAccessibility() -
getDeclaringType
String getDeclaringType() -
getPackageName
String getPackageName() -
setCorrespondingType
- Parameters:
returnType- return types or field types
-
getCorrespondingType
String getCorrespondingType()This correponds to both method return types and field types. -
getCorrespondingType
-
toSignatureString
String toSignatureString() -
toSignatureString
-
setRunnable
void setRunnable(boolean value) -
isRunnable
boolean isRunnable() -
isImplementor
boolean isImplementor() -
setImplementor
void setImplementor(boolean value) -
isOverrider
boolean isOverrider() -
setOverrider
void setOverrider(boolean value) -
getMessage
IMessage getMessage() -
setMessage
-
getSourceLocation
ISourceLocation getSourceLocation() -
setSourceLocation
-
toString
String toString() -
getFormalComment
String getFormalComment()- Returns:
- the javadoc comment for this program element, null if not available
-
setFormalComment
-
toLinkLabelString
String toLinkLabelString()Includes information about the origin of the node. -
toLinkLabelString
-
toLabelString
String toLabelString()Includes name, parameter types (if any) and details (if any). -
toLabelString
-
getParameterNames
-
setParameterNames
-
getParameterSignatures
List<char[]> getParameterSignatures() -
getParameterSignaturesSourceRefs
-
setParameterSignatures
-
getParameterTypes
List<char[]> getParameterTypes() -
getHandleIdentifier
String getHandleIdentifier()The format of the string handle is not specified, but is stable across compilation sessions.- Returns:
- a string representation of this element
-
getHandleIdentifier
-
setHandleIdentifier
-
toLongString
String toLongString()- Returns:
- a string representation of this node and all of its children (recursive)
-
getBytecodeName
String getBytecodeName() -
getBytecodeSignature
String getBytecodeSignature() -
setBytecodeName
-
setBytecodeSignature
-
getSourceSignature
String getSourceSignature()- Returns:
- the full signature of this element, as it appears in the source
-
setSourceSignature
-
walk
-
getModel
AsmManager getModel() -
getRawModifiers
int getRawModifiers() -
setAnnotationStyleDeclaration
void setAnnotationStyleDeclaration(boolean b) -
isAnnotationStyleDeclaration
boolean isAnnotationStyleDeclaration() -
setAnnotationType
- Parameters:
fullyQualifiedannotationType- the annotation type, eg. p.q.r.Foo
-
getAnnotationType
String getAnnotationType()- Returns:
- the fully qualified annotation type, eg. p.q.r.Foo
-
getRemovedAnnotationTypes
String[] getRemovedAnnotationTypes() -
getDeclareParentsMap
-
setDeclareParentsMap
-
addFullyQualifiedName
-
getFullyQualifiedName
String getFullyQualifiedName() -
setAnnotationRemover
void setAnnotationRemover(boolean isRemover) -
isAnnotationRemover
boolean isAnnotationRemover() -
getCorrespondingTypeSignature
String getCorrespondingTypeSignature()- Returns:
- the return type of a method or type of a field in signature form (e.g. Ljava/lang/String;)
-