Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
40,000 | int () { return id; } | getId |
40,001 | int () { return accessFlags; } | getAccessFlags |
40,002 | boolean (StructGeneralAttribute.Key<?> attribute) { return attributes.containsKey(attribute.name); } | hasAttribute |
40,003 | boolean (int modifier) { return (accessFlags & modifier) == modifier; } | hasModifier |
40,004 | boolean () { return hasModifier(CodeConstants.ACC_SYNTHETIC) || hasAttribute(StructGeneralAttribute.ATTRIBUTE_SYNTHETIC); } | isSynthetic |
40,005 | boolean (AnnotationExprent typeAnnotationExpr) { Type type = getType(); if (type == null) return false; // when there is no type reference no collision is possible Set<AnnotationExprent> typeAnnotations = TargetInfo.EmptyTarget.extract(getPossibleTypeAnnotationCollisions(type)) .stream() .map(typeAnnotation-> typeAnnot... | memberAnnCollidesWithTypeAnnotation |
40,006 | boolean (AnnotationExprent typeAnnotationExpr, @NotNull Type type, int param) { Set<AnnotationExprent> typeAnnotations = TargetInfo.FormalParameterTarget .extract(getPossibleTypeAnnotationCollisions(type), param).stream() .map(typeAnnotation-> typeAnnotation.getAnnotationExpr()) .collect(Collectors.toUnmodifiableSet())... | paramAnnCollidesWithTypeAnnotation |
40,007 | List<TypeAnnotation> (@NotNull Type type) { return Arrays.stream(StructGeneralAttribute.TYPE_ANNOTATION_ATTRIBUTES) .flatMap(attrKey -> { StructTypeAnnotationAttribute attribute = (StructTypeAnnotationAttribute)getAttribute(attrKey); if (attribute == null) { return Stream.empty(); } else { return attribute.getAnnotatio... | getPossibleTypeAnnotationCollisions |
40,008 | void () { if (codeLength >= 0 && expanded) { seq = null; expanded = false; } } | releaseResources |
40,009 | String () { return name; } | getName |
40,010 | String () { return descriptor; } | getDescriptor |
40,011 | int () { return bytecodeVersion; } | getBytecodeVersion |
40,012 | boolean () { return codeLength >= 0; } | containsCode |
40,013 | int () { return localVariables; } | getLocalVariables |
40,014 | InstructionSequence () { return seq; } | getInstructionSequence |
40,015 | StructLocalVariableTableAttribute () { return getAttribute(StructGeneralAttribute.ATTRIBUTE_LOCAL_VARIABLE_TABLE); } | getLocalVariableAttr |
40,016 | Type () { return MethodDescriptor.parseDescriptor(getDescriptor()).ret; } | getType |
40,017 | String () { return name; } | toString |
40,018 | String () { return name; } | getName |
40,019 | String () { return descriptor; } | getDescriptor |
40,020 | String () { return name; } | toString |
40,021 | Type () { return new VarType(descriptor); } | getType |
40,022 | StructClass (String name) { return classes.get(name); } | getClass |
40,023 | void () { for (ContextUnit unit : units.values()) { if (unit.isOwn()) { unit.save(); } } } | saveContext |
40,024 | void (File file, boolean isOwn) { addSpace("", file, isOwn, 0); } | addSpace |
40,025 | void (String path, File file, boolean isOwn, int level) { if (file.isDirectory()) { if (level == 1) path += file.getName(); else if (level > 1) path += "/" + file.getName(); File[] files = file.listFiles(); if (files != null) { for (int i = files.length - 1; i >= 0; i--) { addSpace(path, files[i], isOwn, level + 1); } ... | addSpace |
40,026 | int () { return index; } | getIndex |
40,027 | List<StructRecordComponent> () { return Collections.unmodifiableList(components); } | getComponents |
40,028 | List<TypeAnnotation> () { return annotations; } | getAnnotations |
40,029 | StructGeneralAttribute (String name) { if (ATTRIBUTE_CODE.name.equals(name)) { return new StructCodeAttribute(); } else if (ATTRIBUTE_INNER_CLASSES.name.equals(name)) { return new StructInnerClassesAttribute(); } else if (ATTRIBUTE_CONSTANT_VALUE.name.equals(name)) { return new StructConstantValueAttribute(); } else if... | createAttribute |
40,030 | String (int index, ConstantPool pool) { return pool.getPrimitiveConstant(throwsExceptions.get(index)).getString(); } | getExcClassname |
40,031 | List<Integer> () { return throwsExceptions; } | getThrowsExceptions |
40,032 | int () { return methodRefs.size(); } | getMethodsNumber |
40,033 | LinkConstant (int index) { return methodRefs.get(index); } | getMethodReference |
40,034 | List<PooledConstant> (int index) { return methodArguments.get(index); } | getMethodArguments |
40,035 | int (int pc) { if (myLineInfo.length >= 2) { for (int i = myLineInfo.length - 2; i >= 0; i -= 2) { if (pc >= myLineInfo[i]) { return myLineInfo[i + 1]; } } } return -1; } | findLineNumber |
40,036 | int[] () { return myLineInfo; } | getRawData |
40,037 | Exprent () { return defaultValue; } | getDefaultValue |
40,038 | List<AnnotationExprent> () { return annotations; } | getAnnotations |
40,039 | List<Entry> () { return myEntries; } | getEntries |
40,040 | String () { return className; } | getClassName |
40,041 | String () { return methodDescriptor; } | getMethodDescriptor |
40,042 | String () { return methodName; } | getMethodName |
40,043 | void (StructLocalVariableTableAttribute attr) { localVariables.addAll(attr.localVariables); } | add |
40,044 | String (int index, int visibleOffset) { return matchingVars(index, visibleOffset).map(v -> v.name).findFirst().orElse(null); } | getName |
40,045 | String (int index, int visibleOffset) { return matchingVars(index, visibleOffset).map(v -> v.descriptor).findFirst().orElse(null); } | getDescriptor |
40,046 | Stream<LocalVariable> (int index, int visibleOffset) { return localVariables.stream().filter(v -> v.index == index && (visibleOffset >= v.start_pc && visibleOffset < v.start_pc + v.length)); } | matchingVars |
40,047 | boolean (String name) { return localVariables.stream().anyMatch(v -> Objects.equals(v.name, name)); } | containsName |
40,048 | List<List<AnnotationExprent>> () { return paramAnnotations; } | getParamAnnotations |
40,049 | String () { return signature; } | getSignature |
40,050 | void (StructLocalVariableTypeTableAttribute attr) { backingAttribute.add(attr.backingAttribute); } | add |
40,051 | String (int index, int visibleOffset) { return backingAttribute.getDescriptor(index, visibleOffset); } | getSignature |
40,052 | List<Entry> () { return entries; } | getEntries |
40,053 | List<String> () { return classes; } | getClasses |
40,054 | boolean (IMatchable object) { variables.clear(); return match(this.rootNode, object); } | match |
40,055 | boolean (MatchNode matchNode, IMatchable object) { if (!object.match(matchNode, this)) { return false; } int expr_index = 0; int stat_index = 0; for (MatchNode childNode : matchNode.getChildren()) { boolean isStatement = childNode.getType() == MatchNode.MATCHNODE_STATEMENT; IMatchable childObject = object.findObject(ch... | match |
40,056 | boolean (String name, Object value) { Object old_value = variables.get(name); if (old_value != null) { return old_value.equals(value); } else { variables.put(name, value); return true; } } | checkAndSetVariableValue |
40,057 | Object (String name) { return variables.get(name); } | getVariableValue |
40,058 | boolean () { String strValue = value.toString(); return (strValue.charAt(0) == '$' && strValue.charAt(strValue.length() - 1) == '$'); } | isVariable |
40,059 | String () { return value.toString(); } | toString |
40,060 | void (MatchNode child) { children.add(child); } | addChild |
40,061 | void (MatchProperties property, RuleValue value) { rules.put(property, value); } | addRule |
40,062 | int () { return type; } | getType |
40,063 | List<MatchNode> () { return children; } | getChildren |
40,064 | Object (MatchProperties property) { RuleValue rule = rules.get(property); return rule == null ? null : rule.value; } | getRuleValue |
40,065 | void () { if (type == CONSTANT_Methodref || type == CONSTANT_InterfaceMethodref || type == CONSTANT_InvokeDynamic || (type == CONSTANT_MethodHandle && index1 != CONSTANT_MethodHandle_REF_getField && index1 != CONSTANT_MethodHandle_REF_putField)) { int parenth = descriptor.indexOf(')'); if (descriptor.length() < 2 || pa... | initConstant |
40,066 | void (ConstantPool pool) { if (type == CONSTANT_NameAndType) { elementname = pool.getPrimitiveConstant(index1).getString(); descriptor = pool.getPrimitiveConstant(index2).getString(); } else if (type == CONSTANT_MethodHandle) { LinkConstant ref_info = pool.getLinkConstant(index2); classname = ref_info.classname; elemen... | resolveConstant |
40,067 | boolean (Object o) { if (o == this) return true; if (!(o instanceof LinkConstant cn)) return false; return this.type == cn.type && this.elementname.equals(cn.elementname) && this.descriptor.equals(cn.descriptor) && (this.type != CONSTANT_NameAndType || this.classname.equals(cn.classname)); } | equals |
40,068 | void (ConstantPool pool) { } | resolveConstant |
40,069 | void () { if (type == CONSTANT_Class) { String className = getString(); isArray = (className.length() > 0 && className.charAt(0) == '['); // empty string for a class name seems to be possible in some android files } } | initConstant |
40,070 | String () { return (String)value; } | getString |
40,071 | void (ConstantPool pool) { if (type == CONSTANT_Class || type == CONSTANT_String || type == CONSTANT_MethodType || type == CONSTANT_Module || type == CONSTANT_Package) { value = pool.getPrimitiveConstant(index).getString(); initConstant(); } } | resolveConstant |
40,072 | boolean (Object o) { if (o == this) return true; if (!(o instanceof PrimitiveConstant cn)) return false; return this.type == cn.type && this.isArray == cn.isArray && this.value.equals(cn.value); } | equals |
40,073 | String[] (int elementType, String className, int nameIndex, int descriptorIndex) { String elementName = ((PrimitiveConstant)getConstant(nameIndex)).getString(); String descriptor = ((PrimitiveConstant)getConstant(descriptorIndex)).getString(); if (interceptor != null) { String oldClassName = interceptor.getOldName(clas... | getClassElement |
40,074 | PooledConstant (int index) { return pool.get(index); } | getConstant |
40,075 | PrimitiveConstant (int index) { PrimitiveConstant cn = (PrimitiveConstant)getConstant(index); if (cn != null && interceptor != null) { if (cn.type == CodeConstants.CONSTANT_Class) { String newName = buildNewClassname(cn.getString()); if (newName != null) { cn = new PrimitiveConstant(CodeConstants.CONSTANT_Class, newNam... | getPrimitiveConstant |
40,076 | LinkConstant (int index) { LinkConstant ln = (LinkConstant)getConstant(index); if (ln != null && interceptor != null && (ln.type == CodeConstants.CONSTANT_Fieldref || ln.type == CodeConstants.CONSTANT_Methodref || ln.type == CodeConstants.CONSTANT_InterfaceMethodref)) { String newClassName = buildNewClassname(ln.classn... | getLinkConstant |
40,077 | String (String className) { VarType vt = new VarType(className, true); String newName = interceptor.getName(vt.getValue()); if (newName != null) { StringBuilder buffer = new StringBuilder(); if (vt.getArrayDim() > 0) { buffer.append("[".repeat(vt.getArrayDim())).append('L').append(newName).append(';'); } else { buffer.... | buildNewClassname |
40,078 | String (boolean isField, String descriptor) { if (isField) { return FieldDescriptor.parseDescriptor(descriptor).buildNewDescriptor(this); } else { return MethodDescriptor.parseDescriptor(descriptor).buildNewDescriptor(this); } } | buildNewDescriptor |
40,079 | void (String className, Link link) { mapClassLinks.put(className, link); } | addClassLink |
40,080 | void (String className) { mapClassLinks.remove(className); } | removeClassLink |
40,081 | Link (String className) { return mapClassLinks.get(className); } | getClassLink |
40,082 | ConstantPool (String className) { try (DataInputFullStream in = getClassStream(className)) { if (in != null) { in.discard(8); return new ConstantPool(in); } return null; } catch (IOException ex) { throw new RuntimeException(ex); } } | loadPool |
40,083 | byte[] (StructClass classStruct, StructMethod mt, int codeFullLength) { String className = classStruct.qualifiedName; try (DataInputFullStream in = getClassStream(className)) { if (in != null) { in.discard(8); ConstantPool pool = classStruct.getPool(); if (pool == null) { pool = new ConstantPool(in); } else { ConstantP... | loadBytecode |
40,084 | DataPoint () { return new DataPoint(new ArrayList<>(localVariables), stack.copy()); } | copy |
40,085 | void (int index, VarType value) { if (index >= localVariables.size()) { for (int i = localVariables.size(); i <= index; i++) { localVariables.add(new VarType(CodeConstants.TYPE_NOTINITIALIZED)); } } localVariables.set(index, value); } | setVariable |
40,086 | VarType (int index) { if (index < localVariables.size()) { return localVariables.get(index); } else { return new VarType(CodeConstants.TYPE_NOTINITIALIZED); } } | getVariable |
40,087 | DataPoint (StructMethod mt) { DataPoint point = new DataPoint(); MethodDescriptor md = MethodDescriptor.parseDescriptor(mt.getDescriptor()); int k = 0; if (!mt.hasModifier(CodeConstants.ACC_STATIC)) { point.setVariable(k++, new VarType(CodeConstants.TYPE_OBJECT, 0, null)); } for (int i = 0; i < md.params.length; i++) {... | getInitialDataPoint |
40,088 | ListStack<VarType> () { return stack; } | getStack |
40,089 | MethodDescriptor (String descriptor) { int parenth = descriptor.lastIndexOf(')'); if (descriptor.length() < 2 || parenth < 0 || descriptor.charAt(0) != '(') { throw new IllegalArgumentException("Invalid descriptor: " + descriptor); } VarType[] params; if (parenth > 1) { String parameters = descriptor.substring(1, paren... | parseDescriptor |
40,090 | String (NewClassNameBuilder builder) { boolean updated = false; VarType[] newParams; if (params.length > 0) { newParams = params.clone(); for (int i = 0; i < params.length; i++) { VarType substitute = buildNewType(params[i], builder); if (substitute != null) { newParams[i] = substitute; updated = true; } } } else { new... | buildNewDescriptor |
40,091 | VarType (VarType type, NewClassNameBuilder builder) { if (type.getType() == CodeConstants.TYPE_OBJECT) { String newClassName = builder.buildNewClassname(type.getValue()); if (newClassName != null) { return new VarType(type.getType(), type.getArrayDim(), newClassName); } } return null; } | buildNewType |
40,092 | boolean (Object o) { if (o == this) return true; if (!(o instanceof MethodDescriptor md)) return false; return ret.equals(md.ret) && Arrays.equals(params, md.params); } | equals |
40,093 | int () { int result = ret.hashCode(); result = 31 * result + params.length; return result; } | hashCode |
40,094 | int () { return type; } | getType |
40,095 | int () { return arrayDim; } | getArrayDim |
40,096 | String () { return value; } | getValue |
40,097 | int () { return typeFamily; } | getTypeFamily |
40,098 | int () { return stackSize; } | getStackSize |
40,099 | String (int type) { return switch (type) { case CodeConstants.TYPE_BYTE -> "B"; case CodeConstants.TYPE_CHAR -> "C"; case CodeConstants.TYPE_DOUBLE -> "D"; case CodeConstants.TYPE_FLOAT -> "F"; case CodeConstants.TYPE_INT -> "I"; case CodeConstants.TYPE_LONG -> "J"; case CodeConstants.TYPE_SHORT -> "S"; case CodeConsta... | getChar |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.