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
Fields inherited from class sootup.core.frontend.AbstractClassSource
classSignature, classSource, sourcePath
-
Constructor Summary
ConstructorDescriptionAsmAnnotationClassSource
(AnalysisInputLocation inputLocation, Path sourcePath, JavaClassType javaClassType, 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>
Collection<? extends SootField>
Reads from the source to retrieve its fields.Reads from the source to retrieve its directly implemented interfaces.Collection<? extends SootMethod>
Reads from the source to retrieve its methods.Reads from the source to retrieve its modifiers.Reads from the source to retrieve its outer class, if this is an inner class.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
-
-
Constructor Details
-
AsmAnnotationClassSource
public AsmAnnotationClassSource(AnalysisInputLocation inputLocation, Path sourcePath, JavaClassType javaClassType, @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
-