Class AsmAnnotationClassSource
java.lang.Object
sootup.core.frontend.AbstractClassSource
sootup.core.frontend.SootClassSource
sootup.java.core.JavaSootClassSource
sootup.java.core.JavaAnnotationSootClassSource
sootup.java.bytecode.frontend.conversion.AsmAnnotationClassSource
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final @NonNull org.objectweb.asm.tree.ClassNode
Fields inherited from class sootup.core.frontend.AbstractClassSource
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.core.frontend.AbstractClassSource
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 class:SootClassSource
Reads from the source to retrieve its methods. This may be an expensive operation.- Specified by:
resolveMethods
in classSootClassSource
- 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 class:SootClassSource
Reads from the source to retrieve its fields. This may be an expensive operation.- Specified by:
resolveFields
in classSootClassSource
- Throws:
ResolveException
-
resolveModifiers
Description copied from class:SootClassSource
Reads from the source to retrieve its modifiers. This may be an expensive operation.- Specified by:
resolveModifiers
in classSootClassSource
-
resolveInterfaces
Description copied from class:SootClassSource
Reads from the source to retrieve its directly implemented interfaces. This may be an expensive operation.- Specified by:
resolveInterfaces
in classSootClassSource
-
resolveSuperclass
Description copied from class:SootClassSource
Reads from the source to retrieve its superclass, if present. This may be an expensive operation.- Specified by:
resolveSuperclass
in classSootClassSource
-
resolveOuterClass
Description copied from class:SootClassSource
Reads from the source to retrieve its outer class, if this is an inner class. This may be an expensive operation.- Specified by:
resolveOuterClass
in classSootClassSource
- Returns:
-
resolvePosition
Description copied from class:SootClassSource
Reads from the source to retrieve its position in the source code. This may be an expensive operation.- Specified by:
resolvePosition
in classSootClassSource
-
toString
-