Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
2,000 | void () { } | visitEnd |
2,001 | void (String name, Object value) { } | visit |
2,002 | void (final String name, String desc, final String value) { myTargets.add(ElemType.valueOf(value)); } | visitEnum |
2,003 | AnnotationVisitor (String name, String desc) { return this; } | visitAnnotation |
2,004 | AnnotationVisitor (String name) { return this; } | visitArray |
2,005 | void () { } | visitEnd |
2,006 | String (final Object value, boolean isArray) { final StringBuilder descriptor = new StringBuilder(); descriptor.append("()"); if (isArray) { descriptor.append("["); } if (value instanceof Type) { descriptor.append("Ljava/lang/Class;"); } else { final String name = Type.getType(value.getClass()).getInternalName(); // on... | getMethodDescr |
2,007 | void (String name, Object value) { final boolean isArray = name == null && myArrayName != null; final String argName; if (name != null) { argName = name; } else { argName = myArrayName; // not interested in collecting complete array value; need to know just array type myArrayName = null; } if (argName != null) { regist... | visit |
2,008 | void (String name, String desc, String value) { final boolean isArray = name == null && myArrayName != null; final String argName; if (name != null) { argName = name; } else { argName = myArrayName; // not interested in collecting complete array value; need to know just array type myArrayName = null; } if (argName != n... | visitEnum |
2,009 | AnnotationVisitor (String name, String desc) { return new AnnotationCrawler((TypeRepr.ClassType)TypeRepr.getType(desc), myTarget); } | visitAnnotation |
2,010 | AnnotationVisitor (String name) { myArrayName = name; return this; } | visitArray |
2,011 | void (String methodName, String methodDescr, Object value) { if (value instanceof Type) { final String className = ((Type)value).getClassName().replace('.', '/'); addUsage(new ClassUsage(className)); } addUsage(new MethodUsage(myType.getJvmName(), methodName, methodDescr)); //myUsages.add(UsageRepr.createMetaMethodUsag... | registerUsages |
2,012 | void () { Set<String> s = myAnnotationArguments.get(myType); if (s == null) { myAnnotationArguments.put(myType, myUsedArguments); } else { s.retainAll(myUsedArguments); } } | visitEnd |
2,013 | void (String mainClass) { addUsage(new ClassUsage(mainClass)); } | visitMainClass |
2,014 | void (String module, int access, String version) { if (isExplicit(access)) { // collect non-synthetic dependencies only myModuleRequires.add(new ModuleRequires(new JVMFlags(access), module, version)); } } | visitRequire |
2,015 | void (String packaze, int access, String... modules) { if (isExplicit(access)) { // collect non-synthetic dependencies only myModuleExports.add(new ModulePackage(packaze, modules != null? Arrays.asList(modules) : Collections.emptyList())); } } | visitExport |
2,016 | void (String service) { addUsage(new ClassUsage(service)); } | visitUse |
2,017 | void (String service, String... providers) { addUsage(new ClassUsage(service)); if (providers != null) { for (String provider : providers) { addUsage(new ClassUsage(provider)); } } } | visitProvide |
2,018 | boolean (int access) { return (access & (Opcodes.ACC_SYNTHETIC | Opcodes.ACC_MANDATED)) == 0; } | isExplicit |
2,019 | void (final String sig) { if (sig != null) { try { new SignatureReader(sig).accept(mySignatureCrawler); } catch (Exception e) { LOG.info("Problems parsing signature \"" + sig + "\" in " + myFileName, e); } } } | processSignature |
2,020 | SignatureVisitor () { return mySignatureWithGenericBoundUsageCrawler; } | visitClassBound |
2,021 | SignatureVisitor () { return mySignatureWithGenericBoundUsageCrawler; } | visitInterfaceBound |
2,022 | SignatureVisitor (char wildcard) { return wildcard == '+' || wildcard == '-'? mySignatureWithGenericBoundUsageCrawler : super.visitTypeArgument(wildcard); } | visitTypeArgument |
2,023 | void (String name) { super.visitClassType(name); addUsage(new ClassAsGenericBoundUsage(name)); } | visitClassType |
2,024 | JvmClassNodeBuilder (String filePath, ClassReader cr, boolean isGenerated) { JvmClassNodeBuilder builder = new JvmClassNodeBuilder(filePath, isGenerated); try { cr.accept(builder, ClassReader.SKIP_FRAMES | ClassReader.SKIP_DEBUG); } catch (RuntimeException e) { throw new RuntimeException("Corrupted .class file: " + fil... | create |
2,025 | JvmNodeReferenceID () { return new JvmNodeReferenceID(myName); } | getReferenceID |
2,026 | void (Usage usage) { ReferenceID owner = usage.getElementOwner(); if (!(owner instanceof JvmNodeReferenceID) || !JvmClass.OBJECT_CLASS_NAME.equals(((JvmNodeReferenceID)owner).getNodeName())) { myUsages.add(usage); } } | addUsage |
2,027 | void (int version, int access, String name, String sig, String superName, String[] interfaces) { myAccess = access; myName = name; myVersion = String.valueOf(version); mySignature = sig; mySuperClass = superName; myInterfaces = Iterators.asIterable(interfaces); myClassNameHolder.set(name); processSignature(sig); } | visit |
2,028 | void () { for (Map.Entry<TypeRepr.ClassType, Set<ElemType>> entry : myAnnotationTargets.entrySet()) { TypeRepr.ClassType type = entry.getKey(); Set<ElemType> targets = entry.getValue(); Set<String> usedArguments = myAnnotationArguments.get(type); addUsage(new AnnotationUsage(type, usedArguments != null? usedArguments :... | visitEnd |
2,029 | ModuleVisitor (String name, int access, String version) { myIsModule = true; myAccess = access; myName = name; myVersion = version; return new ModuleCrawler(); } | visitModule |
2,030 | AnnotationVisitor (final String desc, final boolean visible) { if (desc.equals("Ljava/lang/annotation/Target;")) { return new AnnotationTargetCrawler(); } if (desc.equals("Ljava/lang/annotation/Retention;")) { return new AnnotationRetentionPolicyCrawler(); } TypeRepr.ClassType annotationType = (TypeRepr.ClassType)TypeR... | visitAnnotation |
2,031 | void (String source, String debug) { } | visitSource |
2,032 | FieldVisitor (final int access, final String name, final String desc, final String signature, final Object value) { processSignature(signature); return new FieldVisitor(ASM_API_VERSION) { final Set<TypeRepr.ClassType> annotations = new HashSet<>(); @Override public AnnotationVisitor visitAnnotation(String desc, boolean... | visitField |
2,033 | AnnotationVisitor (String desc, boolean visible) { final TypeRepr.ClassType annotation = (TypeRepr.ClassType)TypeRepr.getType(desc); annotations.add(annotation); return new AnnotationCrawler(annotation, ElemType.FIELD); } | visitAnnotation |
2,034 | void () { try { super.visitEnd(); } finally { if ((access & Opcodes.ACC_SYNTHETIC) == 0) { myFields.add(new JvmField(new JVMFlags(access), signature, name, desc, annotations, value)); } } } | visitEnd |
2,035 | MethodVisitor (final int access, final String n, final String desc, final String signature, final String[] exceptions) { final Ref<Object> defaultValue = Ref.create(); final Set<TypeRepr.ClassType> annotations = new HashSet<>(); final Set<ParamAnnotation> paramAnnotations = new HashSet<>(); processSignature(signature);... | visitMethod |
2,036 | void () { if ((access & Opcodes.ACC_SYNTHETIC) == 0 || (access & Opcodes.ACC_BRIDGE) > 0) { myMethods.add(new JvmMethod(new JVMFlags(access), signature, n, desc, annotations, paramAnnotations, Iterators.asIterable(exceptions), defaultValue.get())); } } | visitEnd |
2,037 | AnnotationVisitor (String desc, boolean visible) { final TypeRepr.ClassType annoType = (TypeRepr.ClassType)TypeRepr.getType(desc); annotations.add(annoType); return new AnnotationCrawler(annoType, "<init>".equals(n)? ElemType.CONSTRUCTOR : ElemType.METHOD); } | visitAnnotation |
2,038 | AnnotationVisitor () { return new AnnotationVisitor(ASM_API_VERSION) { private @Nullable List<Object> myAcc; @Override public void visit(String name, Object value) { collectValue(value); } @Override public void visitEnum(String name, String desc, String value) { collectValue(value); } @Override public AnnotationVisitor... | visitAnnotationDefault |
2,039 | void (String name, Object value) { collectValue(value); } | visit |
2,040 | void (String name, String desc, String value) { collectValue(value); } | visitEnum |
2,041 | AnnotationVisitor (String name) { myAcc = new SmartList<>(); return this; } | visitArray |
2,042 | void () { if (myAcc != null) { Object[] template = null; if (!myAcc.isEmpty()) { final Object elem = myAcc.get(0); if (elem != null) { template = ArrayUtil.newArray(elem.getClass(), 0); } } defaultValue.set(template != null? myAcc.toArray(template) : myAcc.toArray()); } } | visitEnd |
2,043 | void (Object value) { if (myAcc != null) { myAcc.add(value); } else { defaultValue.set(value); } } | collectValue |
2,044 | AnnotationVisitor (int parameter, String desc, boolean visible) { final TypeRepr.ClassType annoType = (TypeRepr.ClassType)TypeRepr.getType(desc); paramAnnotations.add(new ParamAnnotation(parameter, annoType)); return new AnnotationCrawler(annoType, ElemType.PARAMETER); } | visitParameterAnnotation |
2,045 | void (Object cst) { if (cst instanceof Type) { addUsage(new ClassUsage(((Type)cst).getInternalName())); } super.visitLdcInsn(cst); } | visitLdcInsn |
2,046 | void (String desc, int dims) { final TypeRepr.ArrayType typ = (TypeRepr.ArrayType)TypeRepr.getType(desc); Iterators.collect(typ.getUsages(), myUsages); final TypeRepr element = typ.getDeepElementType(); if (element instanceof TypeRepr.ClassType) { addUsage(new ClassNewUsage(((TypeRepr.ClassType)element).getJvmName()));... | visitMultiANewArrayInsn |
2,047 | void (String n, String desc, String signature, Label start, Label end, int index) { processSignature(signature); Iterators.collect(TypeRepr.getType(desc).getUsages(), myUsages); super.visitLocalVariable(n, desc, signature, start, end, index); } | visitLocalVariable |
2,048 | void (Label start, Label end, Label handler, String type) { if (type != null) { Iterators.collect(new TypeRepr.ClassType(type).getUsages(), myUsages); } super.visitTryCatchBlock(start, end, handler, type); } | visitTryCatchBlock |
2,049 | void (int opcode, String type) { final TypeRepr typ = type.startsWith("[")? TypeRepr.getType(type) : new TypeRepr.ClassType(type); if (opcode == Opcodes.NEW) { addUsage(new ClassUsage(((TypeRepr.ClassType)typ).getJvmName())); addUsage(new ClassNewUsage(((TypeRepr.ClassType)typ).getJvmName())); final int ktLambdaMarker ... | visitTypeInsn |
2,050 | void (int opcode, String owner, String name, String desc) { registerFieldUsage(opcode, owner, name, desc); super.visitFieldInsn(opcode, owner, name, desc); } | visitFieldInsn |
2,051 | void (int opcode, String owner, String name, String desc, boolean itf) { registerMethodUsage(owner, name, desc); super.visitMethodInsn(opcode, owner, name, desc, itf); } | visitMethodInsn |
2,052 | void (String methodName, String desc, Handle bsm, Object... bsmArgs) { final Type returnType = Type.getReturnType(desc); Iterators.collect(TypeRepr.getType(returnType).getUsages(), myUsages); // common args processing for (Object arg : bsmArgs) { if (arg instanceof Type) { final Type type = (Type)arg; if (type.getSort(... | visitInvokeDynamicInsn |
2,053 | void (Handle handle) { final String memberOwner = handle.getOwner(); if (memberOwner != null && !memberOwner.equals(myClassNameHolder.get())) { // do not register access to own class members final String memberName = handle.getName(); final String memberDescriptor = handle.getDesc(); final int opCode = getFieldAccessOp... | processMethodHandle |
2,054 | void (int opcode, String owner, String fName, String desc) { if (opcode == Opcodes.PUTFIELD || opcode == Opcodes.PUTSTATIC) { addUsage(new FieldAssignUsage(owner, fName, desc)); } if (opcode == Opcodes.GETFIELD || opcode == Opcodes.GETSTATIC) { Iterators.collect(TypeRepr.getType(desc).getUsages(), myUsages); } addUsage... | registerFieldUsage |
2,055 | void (String owner, String name, @Nullable String desc) { //myUsages.add(UsageRepr.createMetaMethodUsage(myContext, methodName, methodOwner)); if (desc != null) { addUsage(new MethodUsage(owner, name, desc)); Iterators.collect(TypeRepr.getType(Type.getReturnType(desc)).getUsages(), myUsages); } else { // todo: verify f... | registerMethodUsage |
2,056 | int (Handle handle) { switch (handle.getTag()) { case Opcodes.H_GETFIELD: return Opcodes.GETFIELD; case Opcodes.H_GETSTATIC: return Opcodes.GETSTATIC; case Opcodes.H_PUTFIELD: return Opcodes.PUTFIELD; case Opcodes.H_PUTSTATIC: return Opcodes.PUTSTATIC; default: return -1; } } | getFieldAccessOpcode |
2,057 | void (String name, String outerName, String innerName, int access) { if (name != null && name.equals(myClassNameHolder.get())) { // set outer class name only if we are parsing the real inner class and // not the reference to inner class inside some top-level class myAccess |= access; // information about some access fl... | visitInnerClass |
2,058 | void (final String owner, final String name, final String desc) { myOuterClassName.set(owner); if (name != null) { myLocalClassFlag.set(true); } } | visitOuterClass |
2,059 | void (String name) { } | visitFormalTypeParameter |
2,060 | SignatureVisitor () { return super.visitClassBound(); } | visitClassBound |
2,061 | SignatureVisitor () { return super.visitInterfaceBound(); } | visitInterfaceBound |
2,062 | SignatureVisitor () { return super.visitSuperclass(); } | visitSuperclass |
2,063 | SignatureVisitor () { return super.visitInterface(); } | visitInterface |
2,064 | SignatureVisitor () { return super.visitParameterType(); } | visitParameterType |
2,065 | SignatureVisitor () { return super.visitReturnType(); } | visitReturnType |
2,066 | SignatureVisitor () { return super.visitExceptionType(); } | visitExceptionType |
2,067 | void (char descriptor) { } | visitBaseType |
2,068 | void (String name) { } | visitTypeVariable |
2,069 | SignatureVisitor () { return super.visitArrayType(); } | visitArrayType |
2,070 | void (String name) { } | visitInnerClassType |
2,071 | void () { super.visitTypeArgument(); } | visitTypeArgument |
2,072 | SignatureVisitor (char wildcard) { return this; } | visitTypeArgument |
2,073 | void () { super.visitEnd(); } | visitEnd |
2,074 | void (String name) { addUsage(new ClassUsage(name)); } | visitClassType |
2,075 | int () { return super.hashCode() + 2; } | hashCode |
2,076 | boolean () { return getFlags().isTransitive(); } | isTransitive |
2,077 | String () { return myVersion; } | getVersion |
2,078 | boolean (DiffCapable<?, ?> other) { return other instanceof ModuleRequires && getName().equals(((ModuleRequires)other).getName()); } | isSame |
2,079 | int () { return getName().hashCode(); } | diffHashCode |
2,080 | Diff (ModuleRequires past) { return new Diff(past); } | difference |
2,081 | boolean () { return super.unchanged() && !versionChanged(); } | unchanged |
2,082 | boolean () { return !Objects.equals(myPast.getVersion(), getVersion()); } | versionChanged |
2,083 | boolean () { return myPast.getFlags().isTransitive() && !getFlags().isTransitive(); } | becameNonTransitive |
2,084 | int () { return super.hashCode() + 1; } | hashCode |
2,085 | JvmNodeReferenceID () { return myOwner; } | getElementOwner |
2,086 | boolean (Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } final JvmElementUsage jvmUsage = (JvmElementUsage)o; if (!myOwner.equals(jvmUsage.myOwner)) { return false; } return true; } | equals |
2,087 | int () { return myOwner.hashCode(); } | hashCode |
2,088 | String () { return myName; } | getName |
2,089 | boolean (Object o) { if (!super.equals(o)) { return false; } final MemberUsage that = (MemberUsage)o; if (!myName.equals(that.myName)) { return false; } return true; } | equals |
2,090 | int () { int result = super.hashCode(); result = 31 * result + myName.hashCode(); return result; } | hashCode |
2,091 | boolean (DifferentiateContext context, Node<?, ?> affectedNode) { if (affectedNode instanceof JvmClass && ((JvmClass)affectedNode).getFlags().isGenerated()) { // If among affected files are annotation processor-generated, then we might need to re-generate them. // To achieve this, we need to recompile the whole chunk w... | isIncremental |
2,092 | boolean (DifferentiateContext context, Iterable<Node<?, ?>> nodesBefore, Iterable<Node<?, ?>> nodesAfter) { Utils future = new Utils(context.getGraph(), context.getDelta()); Utils present = new Utils(context.getGraph(), null); Difference.Specifier<JvmClass, JvmClass.Diff> classesDiff = Difference.deepDiff( Graph.getNod... | differentiate |
2,093 | boolean (DifferentiateContext context, Difference.Specifier<JvmClass, JvmClass.Diff> classesDiff, Utils future, Utils present) { Iterable<JvmClass> addedClasses = classesDiff.added(); if (Iterators.isEmpty(addedClasses)) { return true; } debug("Processing added classes:"); BackDependencyIndex index = context.getGraph()... | processAddedClasses |
2,094 | boolean (DifferentiateContext context, Difference.Change<JvmClass, JvmClass.Diff> change, Utils future, Utils present) { JvmClass changedClass = change.getPast(); JvmClass.Diff classDiff = change.getDiff(); if (classDiff.superClassChanged() || classDiff.signatureChanged() || !classDiff.interfaces().unchanged()) { boole... | processChangedClass |
2,095 | boolean (DifferentiateContext context, Difference.Change<JvmClass, JvmClass.Diff> classChange, Utils future, Utils present) { JvmClass changedClass = classChange.getPast(); Difference.Specifier<JvmMethod, JvmMethod.Diff> methodsDiff = classChange.getDiff().methods(); if (!changedClass.isAnnotation()) { processAddedMeth... | processMethodChanges |
2,096 | void (DifferentiateContext context, JvmClass changedClass, Iterable<Difference.Change<JvmMethod, JvmMethod.Diff>> changed, Utils future, Utils present) { debug("Processing changed methods: "); if (changedClass.isInterface()) { for (Difference.Change<JvmMethod, JvmMethod.Diff> change : Iterators.filter(changed, ch -> ch... | processChangedMethods |
2,097 | Iterable<OverloadDescriptor> (Utils utils, final JvmClass cls, Function<? super JvmMethod, JVMFlags> correspondenceFinder) { Function<JvmClass, Iterable<OverloadDescriptor>> mapper = c -> Iterators.filter(Iterators.map(c.getMethods(), m -> { JVMFlags accessScope = correspondenceFinder.apply(m); return accessScope != nu... | findAllOverloads |
2,098 | void (DifferentiateContext context, JvmClass changedClass, Iterable<JvmMethod> removed, Utils future, Utils present) { debug("Processing removed methods: "); boolean extendsLibraryClass = future.inheritsFromLibraryClass(changedClass); // todo: lazy? for (JvmMethod removedMethod : removed) { debug("Method ", removedMeth... | processRemovedMethods |
2,099 | void (DifferentiateContext context, JvmClass changedClass, Iterable<JvmMethod> added, Utils future, Utils present) { debug("Processing added methods: "); for (JvmMethod addedMethod : added) { if (!addedMethod.isPrivate() && (changedClass.isInterface() || changedClass.isAbstract() || addedMethod.isAbstract())) { debug("... | processAddedMethods |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.