@Nullable @Override public String getSuperclass() { return getClassDef().getSuperclass(); }
/** * Returns true if this class is an interface. * * If this class is not defined, then this will throw an UnresolvedClassException * * @return True if this class is an interface */ public boolean isInterface() { ClassDef classDef = getClassDef(); return (classDef.getAccessFlags() & AccessFlags.INTERFACE.getValue()) != 0; }
for (String interfaceType: getClassDef().getInterfaces()) { if (!interfaces.containsKey(interfaceType)) { ClassProto interfaceProto = (ClassProto)classPath.getClass(interfaceType);
for (String interfaceType: getClassDef().getInterfaces()) { if (!interfaces.containsKey(interfaceType)) { ClassDef interfaceDef;
addToVtable(getClassDef().getVirtualMethods(), vtable, true, true);
addToVtable(getClassDef().getVirtualMethods(), vtable, true, true);
addToVtable(getClassDef().getVirtualMethods(), vtable, true, true);
ArrayList<Field> fields = getSortedInstanceFields(getClassDef()); final int fieldCount = fields.size();
ArrayList<Field> fields = getSortedInstanceFields(getClassDef());
@Nullable @Override public String getSuperclass() { return getClassDef().getSuperclass(); }
@Nullable @Override public String getSuperclass() { return getClassDef().getSuperclass(); }
/** * Returns true if this class is an interface. * * If this class is not defined, then this will throw an UnresolvedClassException * * @return True if this class is an interface */ public boolean isInterface() { ClassDef classDef = getClassDef(); return (classDef.getAccessFlags() & AccessFlags.INTERFACE.getValue()) != 0; }
/** * Returns true if this class is an interface. * * If this class is not defined, then this will throw an UnresolvedClassException * * @return True if this class is an interface */ public boolean isInterface() { ClassDef classDef = getClassDef(); return (classDef.getAccessFlags() & AccessFlags.INTERFACE.getValue()) != 0; }
TypeProto typeProto = classPath.getClass(className); if (typeProto instanceof ClassProto) { ClassDef classDef = ((ClassProto)typeProto).getClassDef(); for (Method method: classDef.getMethods()) { if (method.equals(methodRef)) {
TypeProto typeProto = classPath.getClass(className); if (typeProto instanceof ClassProto) { ClassDef classDef = ((ClassProto)typeProto).getClassDef(); for (Method method: classDef.getMethods()) { if (method.equals(methodRef)) {
TypeProto typeProto = classPath.getClass(className); if (typeProto instanceof ClassProto) { ClassDef classDef = ((ClassProto)typeProto).getClassDef(); for (Method method: classDef.getMethods()) { if (method.equals(methodRef)) {
private boolean canAccess(@Nonnull Method virtualMethod) { if (!methodIsPackagePrivate(virtualMethod.getAccessFlags())) { return true; } String otherPackage = getPackage(virtualMethod.getDefiningClass()); String ourPackage = getPackage(getClassDef().getType()); return otherPackage.equals(ourPackage); }
for (String interfaceType: getClassDef().getInterfaces()) { if (!interfaces.containsKey(interfaceType)) { ClassDef interfaceDef;
addToVtable(getClassDef().getVirtualMethods(), vtable, true, true);
ArrayList<Field> fields = getSortedInstanceFields(getClassDef());