Class AsmAnnotationClassSource
java.lang.Object
sootup.java.core.JavaSootClassSource
sootup.java.core.JavaAnnotationSootClassSource
sootup.java.bytecode.frontend.conversion.AsmAnnotationClassSource
- All Implemented Interfaces:
SootClassSource
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final @NonNull org.objectweb.asm.tree.ClassNode
Fields inherited from class sootup.java.core.JavaSootClassSource
analysisInputLocation, classSignature, sourcePath
-
Constructor Summary
ConstructorsConstructorDescriptionAsmAnnotationClassSource
(AnalysisInputLocation inputLocation, Path sourcePath, ClassType classType, @NonNull org.objectweb.asm.tree.ClassNode classNode) -
Method Summary
Modifier and TypeMethodDescriptionprotected static List<AnnotationUsage>
convertAnnotation
(List<org.objectweb.asm.tree.AnnotationNode> nodes) protected Iterable<AnnotationUsage>
@NonNull Collection<? extends SootField>
Reads from the source to retrieve its fields.Reads from the source to retrieve its directly implemented interfaces.@NonNull Collection<? extends SootMethod>
Reads from the source to retrieve its methods.@NonNull EnumSet<ClassModifier>
Reads from the source to retrieve its modifiers.Reads from the source to retrieve its outer class, if this is an inner class.@NonNull Position
Reads from the source to retrieve its position in the source code.Reads from the source to retrieve its superclass, if present.toString()
Methods inherited from class sootup.java.core.JavaAnnotationSootClassSource
buildClass
Methods inherited from class sootup.java.core.JavaSootClassSource
equals, getAnalysisInputLocation, getClassType, getSourcePath, hashCode
-
Field Details
-
classNode
protected final @NonNull org.objectweb.asm.tree.ClassNode classNode
-
-
Constructor Details
-
AsmAnnotationClassSource
public AsmAnnotationClassSource(AnalysisInputLocation inputLocation, Path sourcePath, ClassType classType, @NonNull org.objectweb.asm.tree.ClassNode classNode)
-
-
Method Details
-
resolveMethods
Description copied from interface:SootClassSource
Reads from the source to retrieve its methods. This may be an expensive operation.- Throws:
ResolveException
-
convertAnnotation
protected static List<AnnotationUsage> convertAnnotation(List<org.objectweb.asm.tree.AnnotationNode> nodes) -
resolveAnnotations
- Specified by:
resolveAnnotations
in classJavaSootClassSource
-
resolveFields
Description copied from interface:SootClassSource
Reads from the source to retrieve its fields. This may be an expensive operation.- Throws:
ResolveException
-
resolveModifiers
Description copied from interface:SootClassSource
Reads from the source to retrieve its modifiers. This may be an expensive operation. -
resolveInterfaces
Description copied from interface:SootClassSource
Reads from the source to retrieve its directly implemented interfaces. This may be an expensive operation. -
resolveSuperclass
Description copied from interface:SootClassSource
Reads from the source to retrieve its superclass, if present. This may be an expensive operation. -
resolveOuterClass
Description copied from interface:SootClassSource
Reads from the source to retrieve its outer class, if this is an inner class. This may be an expensive operation.- Returns:
-
resolvePosition
Description copied from interface:SootClassSource
Reads from the source to retrieve its position in the source code. This may be an expensive operation. -
toString
-