Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
40,500 | boolean (String classSignature, String variableName) { ClassesProcessor.ClassNode node = (ClassesProcessor.ClassNode)DecompilerContext.getProperty(DecompilerContext.CURRENT_CLASS_NODE); return node.classStruct.qualifiedName.equals(classSignature) && parent instanceof StructField && ((StructField)parent).getName().equal... | inConstantVariable |
40,501 | boolean () { return CodeConstants.TYPE_NULL == constType.getType(); } | isNull |
40,502 | String (String value, boolean ascii) { char[] arr = value.toCharArray(); StringBuilder buffer = new StringBuilder(arr.length); for (char c : arr) { switch (c) { case '\\' -> // u005c: backslash \ buffer.append("\\\\"); case 0x8 -> // "\\\\b"); // u0008: backspace BS buffer.append("\\b"); case 0x9 -> //"\\\\t"); // u000... | convertStringToJava |
40,503 | boolean (Object o) { if (o == this) return true; if (!(o instanceof ConstExprent cn)) return false; return Objects.equals(constType, cn.getConstType()) && Objects.equals(value, cn.getValue()); } | equals |
40,504 | int () { int result = constType != null ? constType.hashCode() : 0; result = 31 * result + (value != null ? value.hashCode() : 0); return result; } | hashCode |
40,505 | boolean () { switch (constType.getType()) { case CodeConstants.TYPE_BOOLEAN, CodeConstants.TYPE_CHAR, CodeConstants.TYPE_BYTE, CodeConstants.TYPE_BYTECHAR, CodeConstants.TYPE_SHORT, CodeConstants.TYPE_SHORTCHAR, CodeConstants.TYPE_INT -> { int value = (Integer)this.value; return value == 0 || (DecompilerContext.getOpti... | hasBooleanValue |
40,506 | boolean () { return switch (constType.getType()) { case CodeConstants.TYPE_BOOLEAN, CodeConstants.TYPE_CHAR, CodeConstants.TYPE_BYTE, CodeConstants.TYPE_BYTECHAR, CodeConstants.TYPE_SHORT, CodeConstants.TYPE_SHORTCHAR, CodeConstants.TYPE_INT -> (Integer)value == 1; case CodeConstants.TYPE_LONG -> ((Long)value).intValue... | hasValueOne |
40,507 | ConstExprent (int type) { return switch (type) { case CodeConstants.TYPE_INT -> new ConstExprent(VarType.VARTYPE_INT, 0, null); case CodeConstants.TYPE_LONG -> new ConstExprent(VarType.VARTYPE_LONG, 0L, null); case CodeConstants.TYPE_DOUBLE -> new ConstExprent(VarType.VARTYPE_DOUBLE, 0d, null); case CodeConstants.TYPE_... | getZeroConstant |
40,508 | VarType () { return constType; } | getConstType |
40,509 | void (VarType constType) { this.constType = constType; } | setConstType |
40,510 | void (VarType expectedType) { // BYTECHAR and SHORTCHAR => CHAR in the CHAR context if ((expectedType.equals(VarType.VARTYPE_CHAR) || expectedType.equals(VarType.VARTYPE_CHARACTER)) && (constType.equals(VarType.VARTYPE_BYTECHAR) || constType.equals(VarType.VARTYPE_SHORTCHAR))) { int intValue = getIntValue(); if (isPrin... | adjustConstType |
40,511 | boolean (int c) { return c >= 32 && c < 127; } | isPrintableAscii |
40,512 | Object () { return value; } | getValue |
40,513 | int () { return (Integer)value; } | getIntValue |
40,514 | boolean () { return boolPermitted; } | isBoolPermitted |
40,515 | boolean (MatchNode matchNode, MatchEngine engine) { if (!super.match(matchNode, engine)) { return false; } for (Entry<MatchProperties, RuleValue> rule : matchNode.getRules().entrySet()) { RuleValue value = rule.getValue(); MatchProperties key = rule.getKey(); if (key == MatchProperties.EXPRENT_CONSTTYPE) { if (!value.v... | match |
40,516 | VarType () { return getVarType(); } | getExprType |
40,517 | int () { return Exprent.MULTIPLE_USES | Exprent.SIDE_EFFECTS_FREE; } | getExprentUse |
40,518 | List<Exprent> () { return new ArrayList<>(); } | getAllExprents |
40,519 | Exprent () { VarExprent var = new VarExprent(index, getVarType(), processor, visibleOffset); var.setDefinition(definition); var.setVersion(version); var.setClassDef(classDef); var.setStack(stack); return var; } | copy |
40,520 | TextBuffer (int indent, BytecodeMappingTracer tracer) { TextBuffer buffer = new TextBuffer(); tracer.addMapping(bytecode); if (classDef) { ClassNode child = DecompilerContext.getClassProcessor().getMapRootClasses().get(varType.getValue()); new ClassWriter().classToJava(child, buffer, indent, tracer); tracer.incrementCu... | toJava |
40,521 | String (VarVersionPair versionPair) { return "var" + versionPair.var + (versionPair.version == 0 ? "" : "_" + versionPair.version); } | getName |
40,522 | VarVersionPair () { return new VarVersionPair(index, version); } | getVarVersionPair |
40,523 | String (StructMethod method) { StructLocalVariableTableAttribute attr = method.getLocalVariableAttr(); if (attr != null && processor != null) { Integer origIndex = processor.getVarOriginalIndex(index); if (origIndex != null) { String name = attr.getName(origIndex, visibleOffset); if (name != null && TextUtil.isValidIde... | getDebugName |
40,524 | int () { return Objects.hash(index, version); } | hashCode |
40,525 | boolean (Object o) { if (o == this) return true; if (!(o instanceof VarExprent ve)) return false; return index == ve.getIndex() && version == ve.getVersion() && Objects.equals(getVarType(), ve.getVarType()); // FIXME: varType comparison redundant? } | equals |
40,526 | int () { return index; } | getIndex |
40,527 | void (int index) { this.index = index; } | setIndex |
40,528 | VarType () { VarType vt = null; if (processor != null) { vt = processor.getVarType(getVarVersionPair()); } if (vt == null || (varType != null && varType.getType() != CodeConstants.TYPE_UNKNOWN)) { vt = varType; } return vt == null ? VarType.VARTYPE_UNKNOWN : vt; } | getVarType |
40,529 | void (VarType varType) { this.varType = varType; } | setVarType |
40,530 | boolean () { return definition; } | isDefinition |
40,531 | void (boolean definition) { this.definition = definition; } | setDefinition |
40,532 | VarProcessor () { return processor; } | getProcessor |
40,533 | int () { return version; } | getVersion |
40,534 | void (int version) { this.version = version; } | setVersion |
40,535 | boolean () { return classDef; } | isClassDef |
40,536 | void (boolean classDef) { this.classDef = classDef; } | setClassDef |
40,537 | boolean () { return stack; } | isStack |
40,538 | void (boolean stack) { this.stack = stack; } | setStack |
40,539 | boolean (MatchNode matchNode, MatchEngine engine) { if (!super.match(matchNode, engine)) { return false; } RuleValue rule = matchNode.getRules().get(MatchProperties.EXPRENT_VAR_INDEX); if (rule != null) { if (rule.isVariable()) { return engine.checkAndSetVariableValue((String)rule.value, this.index); } else { return th... | match |
40,540 | int () { return 0; // the highest precedence } | getPrecedence |
40,541 | VarType () { return VarType.VARTYPE_VOID; } | getExprType |
40,542 | int () { return 0; } | getExprentUse |
40,543 | CheckTypesResult () { return null; } | checkExprTypeBounds |
40,544 | boolean (Exprent exprent) { if (equals(exprent)) { return true; } List<Exprent> lst = getAllExprents(); for (int i = lst.size() - 1; i >= 0; i--) { if (lst.get(i).containsExprent(exprent)) { return true; } } return false; } | containsExprent |
40,545 | List<Exprent> (boolean recursive) { List<Exprent> lst = getAllExprents(); if (recursive) { for (int i = lst.size() - 1; i >= 0; i--) { lst.addAll(lst.get(i).getAllExprents(true)); } } return lst; } | getAllExprents |
40,546 | Set<VarVersionPair> () { List<Exprent> lstAllExprents = getAllExprents(true); lstAllExprents.add(this); Set<VarVersionPair> set = new HashSet<>(); for (Exprent expr : lstAllExprents) { if (expr.type == EXPRENT_VAR) { set.add(new VarVersionPair((VarExprent)expr)); } } return set; } | getAllVariables |
40,547 | List<Exprent> () { throw new RuntimeException("not implemented"); } | getAllExprents |
40,548 | Exprent () { throw new RuntimeException("not implemented"); } | copy |
40,549 | TextBuffer (int indent, BytecodeMappingTracer tracer) { throw new RuntimeException("not implemented"); } | toJava |
40,550 | void (Exprent oldExpr, Exprent newExpr) { } | replaceExprent |
40,551 | void (Collection<Integer> bytecodeOffsets) { if (bytecodeOffsets != null && !bytecodeOffsets.isEmpty()) { if (bytecode == null) { bytecode = new HashSet<>(bytecodeOffsets); } else { bytecode.addAll(bytecodeOffsets); } } } | addBytecodeOffsets |
40,552 | IMatchable (MatchNode matchNode, int index) { if (matchNode.getType() != MatchNode.MATCHNODE_EXPRENT) { return null; } List<Exprent> lstAllExprents = getAllExprents(); if (lstAllExprents == null || lstAllExprents.isEmpty()) { return null; } String position = (String)matchNode.getRuleValue(MatchProperties.EXPRENT_POSITI... | findObject |
40,553 | boolean (MatchNode matchNode, MatchEngine engine) { if (matchNode.getType() != MatchNode.MATCHNODE_EXPRENT) { return false; } for (Entry<MatchProperties, RuleValue> rule : matchNode.getRules().entrySet()) { MatchProperties key = rule.getKey(); if (key == MatchProperties.EXPRENT_TYPE && this.type != (Integer)rule.getVal... | match |
40,554 | String () { return toJava(0, BytecodeMappingTracer.DUMMY).toString(); } | toString |
40,555 | Exprent () { SwitchExprent swExpr = new SwitchExprent(value.copy(), bytecode); List<List<Exprent>> lstCaseValues = new ArrayList<>(); for (List<Exprent> lst : caseValues) { lstCaseValues.add(new ArrayList<>(lst)); } swExpr.setCaseValues(lstCaseValues); return swExpr; } | copy |
40,556 | VarType () { return value.getExprType(); } | getExprType |
40,557 | CheckTypesResult () { CheckTypesResult result = new CheckTypesResult(); result.addMinTypeExprent(value, VarType.VARTYPE_BYTECHAR); result.addMaxTypeExprent(value, VarType.VARTYPE_INT); VarType valType = value.getExprType(); for (List<Exprent> lst : caseValues) { for (Exprent expr : lst) { if (expr != null) { VarType ca... | checkExprTypeBounds |
40,558 | List<Exprent> () { List<Exprent> lst = new ArrayList<>(); lst.add(value); return lst; } | getAllExprents |
40,559 | TextBuffer (int indent, BytecodeMappingTracer tracer) { tracer.addMapping(bytecode); //if it is impossible to process TextBuffer buf = new TextBuffer(); if (isBootstrapSwitch(this)) { InvocationExprent invocationExprent = (InvocationExprent)value; List<Exprent> parameters = invocationExprent.getParameters(); if (parame... | toJava |
40,560 | void (Exprent oldExpr, Exprent newExpr) { if (oldExpr == value) { value = newExpr; } } | replaceExprent |
40,561 | boolean (Object o) { if (o == this) { return true; } if (!(o instanceof SwitchExprent sw)) { return false; } return Objects.equals(value, sw.getValue()); } | equals |
40,562 | Exprent () { return value; } | getValue |
40,563 | void (List<List<Exprent>> caseValues) { this.caseValues = caseValues; } | setCaseValues |
40,564 | TextBuffer (int indent, BytecodeMappingTracer tracer) { TextBuffer buffer = new TextBuffer(); buffer.appendIndent(indent); buffer.append('@'); buffer.append(DecompilerContext.getImportCollector().getNestedName(ExprProcessor.buildJavaClassName(className))); int type = getAnnotationType(); if (type != ANNOTATION_MARKER) ... | toJava |
40,565 | String () { return className; } | getClassName |
40,566 | int () { if (parNames.isEmpty()) { return ANNOTATION_MARKER; } else if (parNames.size() == 1 && "value".equals(parNames.get(0))) { return ANNOTATION_SINGLE_ELEMENT; } else { return ANNOTATION_NORMAL; } } | getAnnotationType |
40,567 | int () { return Objects.hash(className, parNames, parValues); } | hashCode |
40,568 | boolean (Object o) { if (o == this) return true; if (!(o instanceof AnnotationExprent ann)) return false; return className.equals(ann.className) && parNames.equals(ann.parNames) && parValues.equals(ann.parValues); } | equals |
40,569 | Exprent () { return new MonitorExprent(monType, value.copy(), bytecode); } | copy |
40,570 | List<Exprent> () { List<Exprent> lst = new ArrayList<>(); lst.add(value); return lst; } | getAllExprents |
40,571 | TextBuffer (int indent, BytecodeMappingTracer tracer) { tracer.addMapping(bytecode); if (monType == MONITOR_ENTER) { return value.toJava(indent, tracer).enclose("synchronized(", ")"); } else { return new TextBuffer(); } } | toJava |
40,572 | void (Exprent oldExpr, Exprent newExpr) { if (oldExpr == value) { value = newExpr; } } | replaceExprent |
40,573 | boolean (Object o) { if (o == this) return true; if (!(o instanceof MonitorExprent me)) return false; return monType == me.getMonType() && Objects.equals(value, me.getValue()); } | equals |
40,574 | int () { return monType; } | getMonType |
40,575 | Exprent () { return value; } | getValue |
40,576 | Exprent () { return new ExitExprent(exitType, value == null ? null : value.copy(), retType, bytecode); } | copy |
40,577 | CheckTypesResult () { CheckTypesResult result = new CheckTypesResult(); if (exitType == EXIT_RETURN && retType.getType() != CodeConstants.TYPE_VOID) { result.addMinTypeExprent(value, VarType.getMinTypeInFamily(retType.getTypeFamily())); result.addMaxTypeExprent(value, retType); } return result; } | checkExprTypeBounds |
40,578 | List<Exprent> () { List<Exprent> lst = new ArrayList<>(); if (value != null) { lst.add(value); } return lst; } | getAllExprents |
40,579 | TextBuffer (int indent, BytecodeMappingTracer tracer) { tracer.addMapping(bytecode); if (exitType == EXIT_RETURN) { TextBuffer buffer = new TextBuffer("return"); if (retType.getType() != CodeConstants.TYPE_VOID) { buffer.append(' '); ExprProcessor.getCastedExprent(value, retType, buffer, indent, false, tracer); } retur... | toJava |
40,580 | void (Exprent oldExpr, Exprent newExpr) { if (oldExpr == value) { value = newExpr; } } | replaceExprent |
40,581 | boolean (Object o) { if (o == this) return true; if (!(o instanceof ExitExprent et)) return false; return exitType == et.getExitType() && Objects.equals(value, et.getValue()); } | equals |
40,582 | int () { return exitType; } | getExitType |
40,583 | Exprent () { return value; } | getValue |
40,584 | VarType () { return retType; } | getRetType |
40,585 | boolean (MatchNode matchNode, MatchEngine engine) { if (!super.match(matchNode, engine)) { return false; } Integer type = (Integer)matchNode.getRuleValue(MatchProperties.EXPRENT_EXITTYPE); return type == null || this.exitType == type; } | match |
40,586 | TextBuffer (int indent, BytecodeMappingTracer tracer) { if (components.isEmpty()) { setDefinition(true); return super.toJava(indent, tracer); } TextBuffer buffer = new TextBuffer(); appendDefinitionType(buffer); buffer.append("("); for (int i = 0; i < components.size(); i++) { buffer.append(components.get(i).toJava(0, ... | toJava |
40,587 | void (@NotNull RecordVarExprent exprent) { components.add(exprent); } | addComponent |
40,588 | RecordVarExprent () { VarExprent copy = (VarExprent)super.copy(); RecordVarExprent newRoot = new RecordVarExprent(copy); for (RecordVarExprent component : components) { newRoot.addComponent(component.copy()); } return newRoot; } | copy |
40,589 | boolean (@NotNull VarExprent varExprent) { if (varExprent instanceof RecordVarExprent recordVarExprent) { if (!this.components.isEmpty()) { return false; } this.components.addAll(recordVarExprent.components); } this.setVarType(varExprent.getVarType()); this.setIndex(varExprent.getIndex()); this.setVersion(varExprent.ge... | copyFrom |
40,590 | List<RecordVarExprent> () { return new ArrayList<>(components); } | getComponents |
40,591 | RecordVarExprent (@Nullable Exprent exprent) { for (RecordVarExprent component : components) { if (component.equals(exprent)) { return component; } } return null; } | getDirectComponent |
40,592 | TextBuffer (int indent, BytecodeMappingTracer tracer) { TextBuffer buffer = new TextBuffer(); buffer.append("assert "); tracer.addMapping(bytecode); if (parameters.get(0) == null) { buffer.append("false"); } else { buffer.append(parameters.get(0).toJava(indent, tracer)); } if (parameters.size() > 1) { buffer.append(" :... | toJava |
40,593 | VarType () { return descriptor.type; } | getExprType |
40,594 | int () { return 0; // multiple references to a field considered dangerous in a multithreaded environment, thus no Exprent.MULTIPLE_USES set here } | getExprentUse |
40,595 | List<Exprent> () { List<Exprent> lst = new ArrayList<>(); if (instance != null) { lst.add(instance); } return lst; } | getAllExprents |
40,596 | Exprent () { return new FieldExprent(name, classname, isStatic, instance == null ? null : instance.copy(), descriptor, bytecode); } | copy |
40,597 | boolean () { MethodWrapper method = (MethodWrapper)DecompilerContext.getProperty(DecompilerContext.CURRENT_METHOD_WRAPPER); if (method != null) { StructLocalVariableTableAttribute attr = method.methodStruct.getLocalVariableAttr(); if (attr != null) { return attr.containsName(name); } } return false; } | isAmbiguous |
40,598 | TextBuffer (int indent, BytecodeMappingTracer tracer) { TextBuffer buf = new TextBuffer(); if (isStatic) { ClassNode node = (ClassNode)DecompilerContext.getProperty(DecompilerContext.CURRENT_CLASS_NODE); if (node == null || !classname.equals(node.classStruct.qualifiedName) || isAmbiguous()) { buf.append(DecompilerConte... | toJava |
40,599 | void (Exprent oldExpr, Exprent newExpr) { if (oldExpr == instance) { instance = newExpr; } } | replaceExprent |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.