Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
40,600 | boolean (Object o) { if (o == this) return true; if (!(o instanceof FieldExprent ft)) return false; return Objects.equals(name, ft.getName()) && Objects.equals(classname, ft.getClassname()) && isStatic == ft.isStatic() && Objects.equals(instance, ft.getInstance()) && Objects.equals(descriptor, ft.getDescriptor()); } | equals |
40,601 | String () { return classname; } | getClassname |
40,602 | FieldDescriptor () { return descriptor; } | getDescriptor |
40,603 | Exprent () { return instance; } | getInstance |
40,604 | boolean () { return isStatic; } | isStatic |
40,605 | String () { return name; } | getName |
40,606 | boolean (MatchNode matchNode, MatchEngine engine) { if (!super.match(matchNode, engine)) { return false; } RuleValue rule = matchNode.getRules().get(MatchProperties.EXPRENT_FIELD_NAME); if (rule != null) { if (rule.isVariable()) { return engine.checkAndSetVariableValue((String)rule.value, this.name); } else { return ru... | match |
40,607 | List<Exprent> (int arrayDim, ListStack<Exprent> stack) { List<Exprent> lstDims = new ArrayList<>(); for (int i = 0; i < arrayDim; i++) { lstDims.add(0, stack.pop()); } return lstDims; } | getDimensions |
40,608 | VarType () { return anonymous ? DecompilerContext.getClassProcessor().getMapRootClasses().get(newType.getValue()).anonymousClassType : newType; } | getExprType |
40,609 | CheckTypesResult () { CheckTypesResult result = new CheckTypesResult(); if (newType.getArrayDim() != 0) { for (Exprent dim : lstDims) { result.addMinTypeExprent(dim, VarType.VARTYPE_BYTECHAR); result.addMaxTypeExprent(dim, VarType.VARTYPE_INT); } if (newType.getArrayDim() == 1) { VarType leftType = newType.decreaseArra... | checkExprTypeBounds |
40,610 | List<Exprent> () { List<Exprent> lst = new ArrayList<>(); if (newType.getArrayDim() != 0) { lst.addAll(lstDims); lst.addAll(lstArrayElements); } else if (constructor != null) { Exprent constructor = this.constructor.getInstance(); if (constructor != null) { // should be true only for a lambda expression with a virtual ... | getAllExprents |
40,611 | Exprent () { List<Exprent> lst = new ArrayList<>(); for (Exprent expr : lstDims) { lst.add(expr.copy()); } NewExprent ret = new NewExprent(newType, lst, bytecode); ret.setConstructor(constructor == null ? null : (InvocationExprent)constructor.copy()); ret.setLstArrayElements(lstArrayElements); ret.setDirectArrayInit(di... | copy |
40,612 | int () { return 1; // precedence of new } | getPrecedence |
40,613 | TextBuffer (int indent, BytecodeMappingTracer tracer) { TextBuffer buf = new TextBuffer(); if (anonymous) { ClassNode child = DecompilerContext.getClassProcessor().getMapRootClasses().get(newType.getValue()); boolean selfReference = DecompilerContext.getProperty(DecompilerContext.CURRENT_CLASS_NODE) == child; // IDEA-2... | toJava |
40,614 | boolean (String className) { ClassNode node = DecompilerContext.getClassProcessor().getMapRootClasses().get(className); return node != null && node.type == ClassNode.CLASS_ANONYMOUS; } | probablySyntheticParameter |
40,615 | String (String classname, List<Exprent> lstParams, int indent, BytecodeMappingTracer tracer) { ClassNode node = DecompilerContext.getClassProcessor().getMapRootClasses().get(classname); if (node != null && node.type != ClassNode.CLASS_ROOT && node.type != ClassNode.CLASS_LOCAL && (node.access & CodeConstants.ACC_STATIC... | getQualifiedNewInstance |
40,616 | void (Exprent oldExpr, Exprent newExpr) { if (oldExpr == constructor) { constructor = (InvocationExprent)newExpr; } if (constructor != null) { constructor.replaceExprent(oldExpr, newExpr); } for (int i = 0; i < lstDims.size(); i++) { if (oldExpr == lstDims.get(i)) { lstDims.set(i, newExpr); } } for (int i = 0; i < lstA... | replaceExprent |
40,617 | boolean (Object o) { if (o == this) return true; if (!(o instanceof NewExprent ne)) return false; return Objects.equals(newType, ne.newType) && Objects.equals(lstDims, ne.lstDims) && Objects.equals(constructor, ne.constructor) && directArrayInit == ne.directArrayInit && Objects.equals(lstArrayElements, ne.lstArrayEleme... | equals |
40,618 | InvocationExprent () { return constructor; } | getConstructor |
40,619 | void (InvocationExprent constructor) { this.constructor = constructor; } | setConstructor |
40,620 | List<Exprent> () { return lstDims; } | getLstDims |
40,621 | VarType () { return newType; } | getNewType |
40,622 | List<Exprent> () { return lstArrayElements; } | getLstArrayElements |
40,623 | void (List<Exprent> lstArrayElements) { this.lstArrayElements = lstArrayElements; } | setLstArrayElements |
40,624 | void (boolean directArrayInit) { this.directArrayInit = directArrayInit; } | setDirectArrayInit |
40,625 | void (boolean isVarArgParam) { this.isVarArgParam = isVarArgParam; } | setVarArgParam |
40,626 | boolean () { return lambda; } | isLambda |
40,627 | boolean () { return anonymous; } | isAnonymous |
40,628 | void (boolean anonymous) { this.anonymous = anonymous; } | setAnonymous |
40,629 | void (boolean enumConst) { this.enumConst = enumConst; } | setEnumConst |
40,630 | Exprent () { return new IfExprent(condition.copy(), bytecode); } | copy |
40,631 | List<Exprent> () { List<Exprent> lst = new ArrayList<>(); lst.add(condition); return lst; } | getAllExprents |
40,632 | TextBuffer (int indent, BytecodeMappingTracer tracer) { tracer.addMapping(bytecode); return condition.toJava(indent, tracer).enclose("if (", ")"); } | toJava |
40,633 | void (Exprent oldExpr, Exprent newExpr) { if (oldExpr == condition) { condition = newExpr; } } | replaceExprent |
40,634 | boolean (Object o) { if (o == this) return true; if (!(o instanceof IfExprent ie)) return false; return Objects.equals(condition, ie.getCondition()); } | equals |
40,635 | IfExprent () { condition = new FunctionExprent(FunctionExprent.FUNCTION_BOOL_NOT, condition, condition.bytecode); return this; } | negateIf |
40,636 | Exprent () { return condition; } | getCondition |
40,637 | void (Exprent condition) { this.condition = condition; } | setCondition |
40,638 | VarType () { VarType exprType = null; if (funcType <= FUNCTION_NEG || funcType == FUNCTION_IPP || funcType == FUNCTION_PPI || funcType == FUNCTION_IMM || funcType == FUNCTION_MMI) { VarType type1 = lstOperands.get(0).getExprType(); VarType type2 = null; if (lstOperands.size() > 1) { type2 = lstOperands.get(1).getExprTy... | getExprType |
40,639 | int () { if (funcType >= FUNCTION_IMM && funcType <= FUNCTION_PPI) { return 0; } else { int ret = Exprent.MULTIPLE_USES | Exprent.SIDE_EFFECTS_FREE; for (Exprent expr : lstOperands) { ret &= expr.getExprentUse(); } return ret; } } | getExprentUse |
40,640 | CheckTypesResult () { CheckTypesResult result = new CheckTypesResult(); Exprent param1 = lstOperands.get(0); VarType type1 = param1.getExprType(); Exprent param2 = null; VarType type2 = null; if (lstOperands.size() > 1) { param2 = lstOperands.get(1); type2 = param2.getExprType(); } switch (funcType) { case FUNCTION_IIF... | checkExprTypeBounds |
40,641 | List<Exprent> () { return new ArrayList<>(lstOperands); } | getAllExprents |
40,642 | Exprent () { List<Exprent> lst = new ArrayList<>(); for (Exprent expr : lstOperands) { lst.add(expr.copy()); } FunctionExprent func = new FunctionExprent(funcType, lst, bytecode); func.setImplicitType(implicitType); return func; } | copy |
40,643 | boolean (Object o) { if (o == this) return true; if (!(o instanceof FunctionExprent fe)) return false; return funcType == fe.funcType && Objects.equals(lstOperands, fe.lstOperands); // TODO: order of operands insignificant } | equals |
40,644 | void (Exprent oldExpr, Exprent newExpr) { for (int i = 0; i < lstOperands.size(); i++) { if (oldExpr == lstOperands.get(i)) { lstOperands.set(i, newExpr); } } } | replaceExprent |
40,645 | TextBuffer (int indent, BytecodeMappingTracer tracer) { tracer.addMapping(bytecode); if (funcType <= FUNCTION_USHR) { return wrapOperandString(lstOperands.get(0), false, indent, tracer) .append(OPERATORS[funcType]) .append(wrapOperandString(lstOperands.get(1), true, indent, tracer)); } // try to determine more accurate... | toJava |
40,646 | int () { return getPrecedence(funcType); } | getPrecedence |
40,647 | int (int func) { return PRECEDENCE[func]; } | getPrecedence |
40,648 | VarType () { return TYPES[funcType - FUNCTION_I2L]; } | getSimpleCastType |
40,649 | TextBuffer (Exprent expr, boolean eq, int indent, BytecodeMappingTracer tracer) { int myprec = getPrecedence(); int exprprec = expr.getPrecedence(); boolean parentheses = exprprec > myprec; if (!parentheses && eq) { parentheses = (exprprec == myprec); if (parentheses) { if (expr.type == Exprent.EXPRENT_FUNCTION && ((Fu... | wrapOperandString |
40,650 | VarType (VarType[] arr) { int[] types = {CodeConstants.TYPE_DOUBLE, CodeConstants.TYPE_FLOAT, CodeConstants.TYPE_LONG}; VarType[] vartypes = {VarType.VARTYPE_DOUBLE, VarType.VARTYPE_FLOAT, VarType.VARTYPE_LONG}; for (int i = 0; i < types.length; i++) { for (VarType anArr : arr) { if (anArr.getType() == types[i]) { retu... | getMaxVarType |
40,651 | int () { return funcType; } | getFuncType |
40,652 | void (int funcType) { this.funcType = funcType; } | setFuncType |
40,653 | List<Exprent> () { return lstOperands; } | getLstOperands |
40,654 | void (VarType implicitType) { this.implicitType = implicitType; } | setImplicitType |
40,655 | boolean (MatchNode matchNode, MatchEngine engine) { if (!super.match(matchNode, engine)) { return false; } Integer type = (Integer)matchNode.getRuleValue(MatchProperties.EXPRENT_FUNCTYPE); return type == null || this.funcType == type; } | match |
40,656 | VarType () { return descriptor.ret; } | getExprType |
40,657 | CheckTypesResult () { CheckTypesResult result = new CheckTypesResult(); for (int i = 0; i < parameters.size(); i++) { Exprent parameter = parameters.get(i); VarType leftType = descriptor.params[i]; result.addMinTypeExprent(parameter, VarType.getMinTypeInFamily(leftType.getTypeFamily())); result.addMaxTypeExprent(parame... | checkExprTypeBounds |
40,658 | List<Exprent> () { List<Exprent> lst = new ArrayList<>(); if (instance != null) { lst.add(instance); } lst.addAll(parameters); return lst; } | getAllExprents |
40,659 | Exprent () { return new InvocationExprent(this); } | copy |
40,660 | TextBuffer (int indent, BytecodeMappingTracer tracer) { TextBuffer buf = new TextBuffer(); String super_qualifier = null; boolean isInstanceThis = false; tracer.addMapping(bytecode); if (instance instanceof InvocationExprent) { ((InvocationExprent) instance).markUsingBoxingResult(); } if (isStatic) { if (isBoxingCall()... | toJava |
40,661 | boolean () { StructClass cl = DecompilerContext.getStructContext().getClass(className); if (cl != null) { StructMethod mt = cl.getMethod(InterpreterUtil.makeUniqueKey(name, stringDescriptor)); if (mt != null) { return mt.hasModifier(CodeConstants.ACC_VARARGS); } } else { // TODO: tap into IDEA indices to access librari... | isVarArgCall |
40,662 | boolean () { if (isStatic && "valueOf".equals(name) && parameters.size() == 1) { int paramType = parameters.get(0).getExprType().getType(); // special handling for ambiguous types if (parameters.get(0).type == Exprent.EXPRENT_CONST) { // 'Integer.valueOf(1)' has '1' type detected as TYPE_BYTECHAR // 'Integer.valueOf(40... | isBoxingCall |
40,663 | boolean (@NotNull String className, @NotNull String methodName, int parametersCount) { return invocationType == INVOKE_VIRTUAL && this.className.equals(className) && methodName.equals(name) && parameters.size() == parametersCount; } | isInstanceCall |
40,664 | boolean (@NotNull String methodName, int parametersCount) { return invocationType == INVOKE_DYNAMIC && methodName.equals(name) && parameters.size() == parametersCount; } | isDynamicCall |
40,665 | void () { canIgnoreBoxing = false; } | markUsingBoxingResult |
40,666 | String (int type) { return switch (type) { case CodeConstants.TYPE_BOOLEAN -> "java/lang/Boolean"; case CodeConstants.TYPE_BYTE, CodeConstants.TYPE_BYTECHAR -> "java/lang/Byte"; case CodeConstants.TYPE_CHAR -> "java/lang/Character"; case CodeConstants.TYPE_SHORT, CodeConstants.TYPE_SHORTCHAR -> "java/lang/Short"; case ... | getClassNameForPrimitiveType |
40,667 | boolean () { return !isStatic && parameters.size() == 0 && className.equals(UNBOXING_METHODS.get(name)); } | isUnboxingCall |
40,668 | BitSet () { StructClass cl = DecompilerContext.getStructContext().getClass(className); if (cl == null) return EMPTY_BIT_SET; // check number of matches List<MethodDescriptor> matches = new ArrayList<>(); nextMethod: for (StructMethod mt : cl.getMethods()) { if (name.equals(mt.getName())) { MethodDescriptor md = MethodD... | getAmbiguousParameters |
40,669 | void (Exprent oldExpr, Exprent newExpr) { if (oldExpr == instance) { instance = newExpr; } for (int i = 0; i < parameters.size(); i++) { if (oldExpr == parameters.get(i)) { parameters.set(i, newExpr); } } } | replaceExprent |
40,670 | boolean (Object o) { if (o == this) return true; if (!(o instanceof InvocationExprent it)) return false; return Objects.equals(name, it.name) && Objects.equals(className, it.className) && isStatic == it.isStatic && Objects.equals(instance, it.instance) && Objects.equals(descriptor, it.descriptor) && funcType == it.func... | equals |
40,671 | List<Exprent> () { return parameters; } | getParameters |
40,672 | void (List<Exprent> parameters) { this.parameters = parameters; } | setParameters |
40,673 | MethodDescriptor () { return descriptor; } | getDescriptor |
40,674 | void (MethodDescriptor descriptor) { this.descriptor = descriptor; } | setDescriptor |
40,675 | String () { return className; } | getClassName |
40,676 | void (String className) { this.className = className; } | setClassName |
40,677 | int () { return funcType; } | getFuncType |
40,678 | void (int funcType) { this.funcType = funcType; } | setFuncType |
40,679 | Exprent () { return instance; } | getInstance |
40,680 | void (Exprent instance) { this.instance = instance; } | setInstance |
40,681 | boolean () { return isStatic; } | isStatic |
40,682 | void (boolean isStatic) { this.isStatic = isStatic; } | setStatic |
40,683 | String () { return name; } | getName |
40,684 | void (String name) { this.name = name; } | setName |
40,685 | String () { return stringDescriptor; } | getStringDescriptor |
40,686 | void (String stringDescriptor) { this.stringDescriptor = stringDescriptor; } | setStringDescriptor |
40,687 | int () { return invocationType; } | getInvocationType |
40,688 | String () { return invokeDynamicClassSuffix; } | getInvokeDynamicClassSuffix |
40,689 | List<PooledConstant> () { return bootstrapArguments; } | getBootstrapArguments |
40,690 | 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_INVOCATION_PARAMETER) { i... | match |
40,691 | VarType () { return left.getExprType(); } | getExprType |
40,692 | CheckTypesResult () { CheckTypesResult result = new CheckTypesResult(); VarType typeLeft = left.getExprType(); VarType typeRight = right.getExprType(); if (typeLeft.getTypeFamily() > typeRight.getTypeFamily()) { result.addMinTypeExprent(right, VarType.getMinTypeInFamily(typeLeft.getTypeFamily())); } else if (typeLeft.g... | checkExprTypeBounds |
40,693 | List<Exprent> () { List<Exprent> lst = new ArrayList<>(); lst.add(left); lst.add(right); return lst; } | getAllExprents |
40,694 | Exprent () { return new AssignmentExprent(left.copy(), right.copy(), bytecode); } | copy |
40,695 | int () { return 13; } | getPrecedence |
40,696 | TextBuffer (int indent, BytecodeMappingTracer tracer) { VarType leftType = left.getExprType(); VarType rightType = right.getExprType(); boolean fieldInClassInit = false, hiddenField = false; if (left.type == Exprent.EXPRENT_FIELD) { // first assignment to a final field. Field name without "this" in front of it FieldExp... | toJava |
40,697 | void (Exprent oldExpr, Exprent newExpr) { if (oldExpr == left) { left = newExpr; } if (oldExpr == right) { right = newExpr; } } | replaceExprent |
40,698 | boolean (Object o) { if (o == this) return true; if (!(o instanceof AssignmentExprent as)) return false; return Objects.equals(left, as.getLeft()) && Objects.equals(right, as.getRight()) && condType == as.getCondType(); } | equals |
40,699 | Exprent () { return left; } | getLeft |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.