@Override public IBinaryMethod[] getMethods() { try (IReader rl = this.typeRef.lock()) { NdType type = this.typeRef.get(); if (type != null) { List<NdMethod> methods = type.getMethodsInDeclarationOrder(); if (methods.isEmpty()) { return null; } IBinaryMethod[] result = new IBinaryMethod[methods.size()]; for (int idx = 0; idx < result.length; idx++) { result[idx] = createBinaryMethod(methods.get(idx)); } return result; } else { return null; } } }
@Override public IBinaryMethod[] getMethods() { try (IReader rl = this.typeRef.lock()) { NdType type = this.typeRef.get(); if (type != null) { List<NdMethod> methods = type.getMethodsInDeclarationOrder(); if (methods.isEmpty()) { return null; } IBinaryMethod[] result = new IBinaryMethod[methods.size()]; for (int idx = 0; idx < result.length; idx++) { result[idx] = createBinaryMethod(methods.get(idx)); } return result; } else { return null; } } }