Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
39,900 | String (int index) { return getFreeName("var" + index); } | getFreeName |
39,901 | String (String proposition) { while (usedNames.contains(proposition)) { proposition += "x"; } usedNames.add(proposition); return proposition; } | getFreeName |
39,902 | String (String classToName) { String nestedName = getNestedName(classToName); if (setFieldNames.contains(nestedName)) { return classToName; } else { return nestedName; } } | getNestedNameInClassContext |
39,903 | String (String fullName) { return getNestedName(fullName, true); } | getNestedName |
39,904 | String (String fullName, boolean imported) { ClassNode node = DecompilerContext.getClassProcessor().getMapRootClasses().get(fullName.replace('.', '/')); //todo[r.sh] anonymous classes? String nestedName; if (node != null && node.classStruct.isOwn()) { nestedName = node.simpleName; while (node.parent != null && node.typ... | getNestedName |
39,905 | void (TextBuffer buffer, boolean addSeparator) { List<String> imports = packImports(); for (String line : imports) { buffer.append("import ").append(line).append(';').appendLineSeparator(); } if (addSeparator && !imports.isEmpty()) { buffer.appendLineSeparator(); } } | writeImports |
39,906 | List<String> () { return mapSimpleNames.entrySet().stream() .filter(ent -> // exclude the current class or one of the nested ones // empty, java.lang and the current packages !setNotImportedNames.contains(ent.getKey()) && !ent.getValue().isEmpty() && !JAVA_LANG_PACKAGE.equals(ent.getValue()) && !ent.getValue().equals(c... | packImports |
39,907 | void (int counter, int value) { values[counter] = value; } | setCounter |
39,908 | int (int counter) { return values[counter]; } | getCounter |
39,909 | int (int counter) { return values[counter]++; } | getCounterAndIncrement |
39,910 | void (String className, String methodName, int bytecodeOffset, int sourceLine) { Map<String, Map<Integer, Integer>> class_mapping = mapping.computeIfAbsent(className, k -> new LinkedHashMap<>()); // need to preserve order Map<Integer, Integer> method_mapping = class_mapping.computeIfAbsent(methodName, k -> new HashMap<... | addMapping |
39,911 | void (String className, String methodName, BytecodeMappingTracer tracer) { for (Entry<Integer, Integer> entry : tracer.getMapping().entrySet()) { addMapping(className, methodName, entry.getKey(), entry.getValue()); } linesMapping.putAll(tracer.getOriginalLinesMapping()); unmappedLines.addAll(tracer.getUnmappedLines());... | addTracer |
39,912 | void (TextBuffer buffer, boolean offsetsToHex) { if (mapping.isEmpty() && linesMapping.isEmpty()) { return; } String lineSeparator = DecompilerContext.getNewLineSeparator(); for (Entry<String, Map<String, Map<Integer, Integer>>> class_entry : mapping.entrySet()) { Map<String, Map<Integer, Integer>> class_mapping = clas... | dumpMapping |
39,913 | void (int offset_total) { this.offset_total += offset_total; } | addTotalOffset |
39,914 | int[] () { int[] res = new int[linesMapping.size() * 2]; int i = 0; for (Entry<Integer, Integer> entry : linesMapping.entrySet()) { res[i] = entry.getKey(); unmappedLines.remove(entry.getKey()); res[i + 1] = entry.getValue() + offset_total + 1; // make it 1 based i += 2; } return res; } | getOriginalLinesMapping |
39,915 | boolean (Severity severity) { return severity.ordinal() >= this.severity.ordinal(); } | accepts |
39,916 | void (Severity severity) { this.severity = severity; } | setSeverity |
39,917 | void (String message, Throwable t) { writeMessage(message, Severity.ERROR, t); } | writeMessage |
39,918 | void (String className) { } | startReadingClass |
39,919 | void () { } | endReadingClass |
39,920 | void (String className) { } | startClass |
39,921 | void () { } | endClass |
39,922 | void (String methodName) { } | startMethod |
39,923 | void () { } | endMethod |
39,924 | void (String className) { } | startWriteClass |
39,925 | void () { } | endWriteClass |
39,926 | void () { error = null; root = null; try { DecompilerContext.setCurrentContext(parentContext); root = codeToJava(klass, method, methodDescriptor, varProc); } catch (Throwable t) { error = t; } finally { DecompilerContext.setCurrentContext(null); } finished = true; synchronized (lock) { lock.notifyAll(); } } | run |
39,927 | boolean () { return finished; } | isFinished |
39,928 | void (ClassNode root, ClassNode node) { // hide synthetic lambda content methods if (node.type == ClassNode.CLASS_LAMBDA && !node.lambdaInformation.is_method_reference) { ClassNode node_content = DecompilerContext.getClassProcessor().getMapRootClasses().get(node.classStruct.qualifiedName); if (node_content != null && n... | processClass |
39,929 | void (ClassNode parent, ClassNode child) { if (child.lambdaInformation.is_method_reference) { // method reference, no code and no parameters return; } MethodWrapper method = parent.getWrapper().getMethods().getWithKey(child.lambdaInformation.content_method_key); MethodWrapper enclosingMethod = parent.getWrapper().getMe... | setLambdaVars |
39,930 | void (ClassNode root, ClassNode node) { List<ClassNode> copy = new ArrayList<>(node.nested); for (ClassNode child : copy) { if (child.classStruct.isSynthetic()) { continue; } if ((child.type == ClassNode.CLASS_LOCAL || child.type == ClassNode.CLASS_ANONYMOUS) && child.enclosingMethod == null) { Set<String> setEnclosing... | checkNotFoundClasses |
39,931 | boolean (ClassNode root, ClassNode child) { Set<String> setEnclosing = child.enclosingClasses; LinkedList<ClassNode> stack = new LinkedList<>(); stack.add(root); while (!stack.isEmpty()) { ClassNode node = stack.removeFirst(); if (setEnclosing.contains(node.classStruct.qualifiedName)) { node.nested.add(child); child.pa... | insertNestedClass |
39,932 | void (ClassNode node) { // class name -> constructor descriptor -> var to field link Map<String, Map<String, List<VarFieldPair>>> mapVarMasks = new HashMap<>(); int clTypes = 0; for (ClassNode nd : node.nested) { if (nd.type != ClassNode.CLASS_LAMBDA && !nd.classStruct.isSynthetic() && (nd.access & CodeConstants.ACC_ST... | computeLocalVarsAndDefinitions |
39,933 | void (ClassNode parent, ClassNode child) { // enclosing method, is null iff member class MethodWrapper enclosingMethod = parent.getWrapper().getMethods().getWithKey(child.enclosingMethod); // iterate all child methods for (MethodWrapper method : child.getWrapper().getMethods()) { if (method.root != null) { // neither a... | insertLocalVars |
39,934 | int (Exprent exprent) { if (exprent.type == Exprent.EXPRENT_ASSIGNMENT) { AssignmentExprent assignExpr = (AssignmentExprent)exprent; if (assignExpr.getLeft().type == Exprent.EXPRENT_FIELD) { FieldExprent fExpr = (FieldExprent)assignExpr.getLeft(); String qName = child.classStruct.qualifiedName; if (fExpr.getClassname()... | processExprent |
39,935 | Exprent (Exprent exprent) { if (exprent.type == Exprent.EXPRENT_VAR) { int varIndex = ((VarExprent)exprent).getIndex(); if (mapParamsToNewVars.containsKey(varIndex)) { VarVersionPair newVar = mapParamsToNewVars.get(varIndex); method.varproc.getExternalVars().add(newVar); return new VarExprent(newVar.var, method.varproc... | replaceExprent |
39,936 | String (StructClass cl, MethodWrapper method, DirectGraph graph, int index) { String field = ""; // parameter variable final if (method.varproc.getVarFinal(new VarVersionPair(index, 0)) == VarProcessor.VAR_NON_FINAL) { return null; } boolean noSynthFlag = DecompilerContext.getOption(IFernflowerPreferences.SYNTHETIC_NOT... | getEnclosingVarField |
39,937 | boolean (StructField fd) { return fd.getName().contains("$") && fd.hasModifier(CodeConstants.ACC_FINAL) && fd.hasModifier(CodeConstants.ACC_PRIVATE); } | possiblySyntheticField |
39,938 | void (List<VarFieldPair> first, List<VarFieldPair> second, boolean both) { int i = 1; while (first.size() > i && second.size() > i) { VarFieldPair fObj = first.get(first.size() - i); VarFieldPair sObj = second.get(second.size() - i); if (!isEqual(both, fObj, sObj)) { first.set(first.size() - i, null); if (both) { secon... | mergeListSignatures |
39,939 | boolean (boolean both, VarFieldPair fObj, VarFieldPair sObj) { boolean eq; if (fObj == null || sObj == null) { eq = (fObj == sObj); } else { eq = true; if (fObj.fieldKey.length() == 0) { fObj.fieldKey = sObj.fieldKey; } else if (sObj.fieldKey.length() == 0) { if (both) { sObj.fieldKey = fObj.fieldKey; } } else { eq = f... | isEqual |
39,940 | void (MethodWrapper method, ClassNode node) { RootStatement root = method.root; Set<Statement> setStats = new HashSet<>(); VarType classType = new VarType(node.classStruct.qualifiedName, true); Statement statement = getDefStatement(root, classType, setStats); if (statement == null) { // unreferenced local class stateme... | setLocalClassDefinition |
39,941 | Statement (Statement stat, Set<Statement> setStats) { LinkedList<Statement> stack = new LinkedList<>(); stack.add(stat); while (!stack.isEmpty()) { Statement st = stack.remove(0); if (stack.isEmpty() || setStats.contains(st)) { if (st.isLabeled() && !stack.isEmpty() || st.getExprents() != null) { return st; } stack.cle... | findFirstBlock |
39,942 | Statement (Statement stat, VarType classType, Set<? super Statement> setStats) { List<Exprent> lst = new ArrayList<>(); Statement retStat = null; if (stat.getExprents() == null) { int counter = 0; for (Object obj : stat.getSequentialObjects()) { if (obj instanceof Statement st) { Statement stTemp = getDefStatement(st, ... | getDefStatement |
39,943 | boolean (Exprent exprent, VarType classType) { List<Exprent> lst = exprent.getAllExprents(true); lst.add(exprent); String classname = classType.getValue(); for (Exprent expr : lst) { boolean res = false; switch (expr.type) { case Exprent.EXPRENT_CONST -> { ConstExprent constExpr = (ConstExprent)expr; res = (VarType.VAR... | searchForClass |
39,944 | boolean (Object o) { if (o == this) return true; if (!(o instanceof VarFieldPair pair)) return false; return fieldKey.equals(pair.fieldKey) && varPair.equals(pair.varPair); } | equals |
39,945 | int () { return fieldKey.hashCode() + varPair.hashCode(); } | hashCode |
39,946 | void () { DecompilerContext.setProperty(DecompilerContext.CURRENT_CLASS, classStruct); DecompilerContext.setProperty(DecompilerContext.CURRENT_CLASS_WRAPPER, this); DecompilerContext.getLogger().startClass(classStruct.qualifiedName); boolean testMode = DecompilerContext.getOption(IFernflowerPreferences.UNIT_TEST_MODE);... | init |
39,947 | void (StructMethod mt, MethodDescriptor md, VarProcessor varProc) { if (DecompilerContext.getOption(IFernflowerPreferences.USE_METHOD_PARAMETERS)) { StructMethodParametersAttribute attr = mt.getAttribute(StructGeneralAttribute.ATTRIBUTE_METHOD_PARAMETERS); if (attr != null) { List<StructMethodParametersAttribute.Entry>... | applyParameterNames |
39,948 | void (StructMethod mt, VarProcessor varProc, MethodWrapper methodWrapper) { if (DecompilerContext.getOption(IFernflowerPreferences.USE_DEBUG_VAR_NAMES)) { StructLocalVariableTableAttribute attr = mt.getLocalVariableAttr(); if (attr != null) { // only param names here varProc.setDebugVarNames(attr.getMapParamNames()); /... | applyDebugInfo |
39,949 | MethodWrapper (String name, String descriptor) { return methods.getWithKey(InterpreterUtil.makeUniqueKey(name, descriptor)); } | getMethodWrapper |
39,950 | StructClass () { return classStruct; } | getClassStruct |
39,951 | Set<String> () { return hiddenMembers; } | getHiddenMembers |
39,952 | String () { return classStruct.qualifiedName; } | toString |
39,953 | void (ClassNode root) { if (root.nested.isEmpty()) { return; } noSynthFlag = DecompilerContext.getOption(IFernflowerPreferences.SYNTHETIC_NOT_SET); computeMethodTypes(root); eliminateStaticAccess(root); } | propagateMemberAccess |
39,954 | void (ClassNode node) { if (node.type == ClassNode.CLASS_LAMBDA) { return; } for (ClassNode nd : node.nested) { computeMethodTypes(nd); } for (MethodWrapper method : node.getWrapper().getMethods()) { computeMethodType(node, method); } } | computeMethodTypes |
39,955 | void (ClassNode node, MethodWrapper method) { MethodAccess type = MethodAccess.NORMAL; if (method.root != null) { DirectGraph graph = method.getOrBuildGraph(); StructMethod mt = method.methodStruct; if ((noSynthFlag || mt.isSynthetic()) && mt.hasModifier(CodeConstants.ACC_STATIC)) { if (graph.nodes.size() == 2) { // in... | computeMethodType |
39,956 | void (ClassNode node) { if (node.type == ClassNode.CLASS_LAMBDA) { return; } for (MethodWrapper meth : node.getWrapper().getMethods()) { if (meth.root != null) { boolean replaced = false; DirectGraph graph = meth.getOrBuildGraph(); HashSet<DirectNode> setVisited = new HashSet<>(); LinkedList<DirectNode> stack = new Lin... | eliminateStaticAccess |
39,957 | boolean (ClassNode caller, MethodWrapper meth, Exprent exprent) { boolean res = false; for (Exprent expr : exprent.getAllExprents()) { res |= replaceInvocations(caller, meth, expr); } while (true) { boolean found = false; for (Exprent expr : exprent.getAllExprents()) { if (expr.type == Exprent.EXPRENT_INVOCATION) { Exp... | replaceInvocations |
39,958 | boolean (ClassNode caller, ClassNode callee) { if (caller.classStruct.qualifiedName.equals(callee.classStruct.qualifiedName)) { return false; } while (caller.parent != null) { caller = caller.parent; } while (callee.parent != null) { callee = callee.parent; } return caller == callee; } | sameTree |
39,959 | Exprent (ClassNode caller, MethodWrapper methdest, InvocationExprent invexpr) { ClassNode node = DecompilerContext.getClassProcessor().getMapRootClasses().get(invexpr.getClassName()); MethodWrapper methsource = null; if (node != null && node.getWrapper() != null) { methsource = node.getWrapper().getMethodWrapper(invexp... | replaceAccessExprent |
39,960 | Exprent (final InvocationExprent invexpr, final Exprent source) { FunctionExprent functionExprent = (FunctionExprent)((ExitExprent)source).getValue().copy(); List<Exprent> lstParameters = invexpr.getParameters(); FieldExprent fieldExprent = (FieldExprent)functionExprent.getLstOperands().get(0); if (fieldExprent.isStati... | replaceFunction |
39,961 | DirectGraph () { if (graph == null && root != null) { graph = new FlattenStatementsHelper().buildDirectGraph(root); } return graph; } | getOrBuildGraph |
39,962 | String () { return methodStruct.getName(); } | toString |
39,963 | void (StructClass cl, String entryName) { classes.add(cl); classEntries.add(entryName); } | addClass |
39,964 | void (String entry) { dirEntries.add(entry); } | addDirEntry |
39,965 | void (String fullPath, String entry) { otherEntries.add(new String[]{fullPath, entry}); } | addOtherEntry |
39,966 | void () { switch (type) { case TYPE_FOLDER -> { // create folder resultSaver.saveFolder(filename); // non-class files for (String[] pair : otherEntries) { resultSaver.copyFile(pair[0], filename, pair[1]); } // classes for (int i = 0; i < classes.size(); i++) { StructClass cl = classes.get(i); if (!cl.isOwn()) { continu... | save |
39,967 | void (Manifest manifest) { this.manifest = manifest; } | setManifest |
39,968 | boolean () { return own; } | isOwn |
39,969 | List<StructClass> () { return classes; } | getClasses |
39,970 | boolean (String name, String descriptor) { return getField(name, descriptor) != null; } | hasField |
39,971 | StructField (String name, String descriptor) { return fields.getWithKey(InterpreterUtil.makeUniqueKey(name, descriptor)); } | getField |
39,972 | StructMethod (String key) { return methods.getWithKey(key); } | getMethod |
39,973 | StructMethod (String name, String descriptor) { return methods.getWithKey(InterpreterUtil.makeUniqueKey(name, descriptor)); } | getMethod |
39,974 | String (int i) { return interfaceNames[i]; } | getInterface |
39,975 | void () { if (loader != null) { pool = null; } } | releaseResources |
39,976 | ConstantPool () { if (pool == null && loader != null) { pool = loader.loadPool(qualifiedName); } return pool; } | getPool |
39,977 | List<StructRecordComponent> () { StructRecordAttribute recordAttr = getAttribute(StructGeneralAttribute.ATTRIBUTE_RECORD); if (recordAttr == null) return null; return recordAttr.getComponents(); } | getRecordComponents |
39,978 | List<String> () { StructPermittedSubclassesAttribute permittedSubClassAttr = getAttribute(StructGeneralAttribute.ATTRIBUTE_PERMITTED_SUBCLASSES); if (permittedSubClassAttr == null) return null; return permittedSubClassAttr.getClasses(); } | getPermittedSubclasses |
39,979 | int[] () { return interfaces; } | getInterfaces |
39,980 | String[] () { return interfaceNames; } | getInterfaceNames |
39,981 | boolean () { return own; } | isOwn |
39,982 | LazyLoader () { return loader; } | getLoader |
39,983 | boolean () { return (majorVersion > CodeConstants.BYTECODE_JAVA_LE_4 || (majorVersion == CodeConstants.BYTECODE_JAVA_LE_4 && minorVersion > 0)); // FIXME: check second condition } | isVersion5 |
39,984 | boolean () { return majorVersion >= CodeConstants.BYTECODE_JAVA_7; } | isVersion7 |
39,985 | boolean () { return majorVersion >= CodeConstants.BYTECODE_JAVA_8; } | isVersion8 |
39,986 | boolean () { return majorVersion >= CodeConstants.BYTECODE_JAVA_14; } | isVersion14 |
39,987 | boolean () { return majorVersion >= CodeConstants.BYTECODE_JAVA_15; } | isVersion15 |
39,988 | boolean () { return majorVersion >= CodeConstants.BYTECODE_JAVA_16; } | isVersion16 |
39,989 | boolean () { return majorVersion >= CodeConstants.BYTECODE_JAVA_17; } | isVersion17 |
39,990 | boolean () { return majorVersion >= CodeConstants.BYTECODE_JAVA_21; } | isVersion21 |
39,991 | boolean () { return minorVersion == 0xFFFF; } | isPreviewVersion |
39,992 | boolean () { return isVersion17() || (isVersion15() && isPreviewVersion()); } | hasSealedClassesSupport |
39,993 | boolean () { return isVersion16() || (isVersion14() && isPreviewVersion()); } | hasPatternsInInstanceofSupport |
39,994 | boolean () { return isVersion14(); } | hasEnhancedSwitchSupport |
39,995 | boolean () { return isVersion21(); } | hasRecordPatternSupport |
39,996 | String () { return qualifiedName; } | toString |
39,997 | Type () { return null; } | getType |
39,998 | int () { return typeArgumentIndex; } | getTypeArgumentIndex |
39,999 | int () { return typePathEntryKind; } | getTypePathEntryKind |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.