MCPcopy Create free account
hub / github.com/LFYSec/MScan / JMethod

Method JMethod

src/main/java/pascal/taie/language/classes/JMethod.java:81–98  ·  view source on GitHub ↗
(JClass declaringClass, String name, Set<Modifier> modifiers,
                   List<Type> paramTypes, Type returnType, List<ClassType> exceptions,
                   @Nullable MethodGSignature gSignature,
                   AnnotationHolder annotationHolder,
                   @Nullable List<AnnotationHolder> paramAnnotations,
                   @Nullable List<String> paramNames,
                   Object methodSource)

Source from the content-addressed store, hash-verified

79 private transient IR ir;
80
81 public JMethod(JClass declaringClass, String name, Set<Modifier> modifiers,
82 List<Type> paramTypes, Type returnType, List<ClassType> exceptions,
83 @Nullable MethodGSignature gSignature,
84 AnnotationHolder annotationHolder,
85 @Nullable List<AnnotationHolder> paramAnnotations,
86 @Nullable List<String> paramNames,
87 Object methodSource) {
88 super(declaringClass, name, modifiers, annotationHolder);
89 this.paramTypes = List.copyOf(paramTypes);
90 this.returnType = returnType;
91 this.exceptions = List.copyOf(exceptions);
92 this.signature = StringReps.getSignatureOf(this);
93 this.subsignature = Subsignature.get(name, paramTypes, returnType);
94 this.gSignature = gSignature;
95 this.paramAnnotations = paramAnnotations;
96 this.paramNames = paramNames;
97 this.methodSource = methodSource;
98 }
99
100 public boolean isAbstract() {
101 return Modifier.hasAbstract(modifiers);

Callers

nothing calls this directly

Calls 2

getSignatureOfMethod · 0.95
getMethod · 0.95

Tested by

no test coverage detected