public class JavaSootMethod extends SootMethod
Modifier and Type | Class and Description |
---|---|
static interface |
JavaSootMethod.AnnotationOrSignatureStep |
static class |
JavaSootMethod.JavaSootMethodBuilder
Defines a
JavaSootField.JavaSootFieldBuilder to provide a fluent API. |
SootMethod.BuildStep, SootMethod.MethodSourceStep, SootMethod.ModifierStep, SootMethod.SignatureStep, SootMethod.SootMethodBuilder, SootMethod.ThrownExceptionsStep
Modifier and Type | Field and Description |
---|---|
protected static String |
CONSTRUCTOR_NAME |
protected static String |
STATIC_INITIALIZER_NAME |
bodySource, exceptions, parameterTypes
Constructor and Description |
---|
JavaSootMethod(BodySource source,
MethodSignature methodSignature,
Iterable<Modifier> modifiers,
Iterable<ClassType> thrownExceptions,
Iterable<AnnotationUsage> annotations,
Position position) |
Modifier and Type | Method and Description |
---|---|
static JavaSootMethod.AnnotationOrSignatureStep |
builder() |
Iterable<AnnotationUsage> |
getAnnotations(Optional<JavaView> view) |
boolean |
isConstructor() |
boolean |
isStaticInitializer() |
JavaSootMethod |
withAnnotations(Iterable<AnnotationUsage> annotations) |
JavaSootMethod |
withBody(Body body) |
JavaSootMethod |
withModifiers(Iterable<Modifier> modifiers) |
JavaSootMethod |
withOverridingMethodSource(Function<OverridingBodySource,OverridingBodySource> overrider) |
JavaSootMethod |
withSource(BodySource source) |
JavaSootMethod |
withThrownExceptions(Iterable<ClassType> thrownExceptions) |
equals, getBody, getBodySource, getExceptionSignatures, getParameterCount, getParameterType, getParameterTypes, getReturnType, hasBody, hashCode, isAbstract, isBuiltInMethod, isConcrete, isMain, isNative, isSynchronized, toString
equivHashCode, getDeclaringClassType, getModifiers, getName, getPosition, isFinal, isPrivate, isProtected, isPublic, isStatic, toString
@Nonnull protected static final String CONSTRUCTOR_NAME
@Nonnull protected static final String STATIC_INITIALIZER_NAME
public JavaSootMethod(@Nonnull BodySource source, @Nonnull MethodSignature methodSignature, @Nonnull Iterable<Modifier> modifiers, @Nonnull Iterable<ClassType> thrownExceptions, @Nonnull Iterable<AnnotationUsage> annotations, @Nonnull Position position)
public boolean isConstructor()
public boolean isStaticInitializer()
@Nonnull public Iterable<AnnotationUsage> getAnnotations(@Nonnull Optional<JavaView> view)
@Nonnull public JavaSootMethod withOverridingMethodSource(@Nonnull Function<OverridingBodySource,OverridingBodySource> overrider)
withOverridingMethodSource
in class SootMethod
@Nonnull public JavaSootMethod withSource(@Nonnull BodySource source)
withSource
in class SootMethod
@Nonnull public JavaSootMethod withModifiers(@Nonnull Iterable<Modifier> modifiers)
withModifiers
in class SootMethod
@Nonnull public JavaSootMethod withThrownExceptions(@Nonnull Iterable<ClassType> thrownExceptions)
withThrownExceptions
in class SootMethod
@Nonnull public JavaSootMethod withAnnotations(@Nonnull Iterable<AnnotationUsage> annotations)
@Nonnull public JavaSootMethod withBody(@Nonnull Body body)
withBody
in class SootMethod
@Nonnull public static JavaSootMethod.AnnotationOrSignatureStep builder()
Copyright © 2023 Soot OSS. All rights reserved.