public @Nonnull ClassDescriptor getClassDescriptor(Class<?> actualClass) { return getClassDescriptorForDottedClassName(actualClass.getName()); }
/** * Get the class descriptor. */ public final ClassDescriptor getClassDescriptor() { return DescriptorFactory.instance().getClassDescriptorForDottedClassName(className); }
@Override public ClassDescriptor getClassDescriptor() { return DescriptorFactory.instance().getClassDescriptorForDottedClassName(className); }
/** * Get a ClassDescriptor for the class described by given ObjectType object. * * @param type * an ObjectType * @return a ClassDescriptor for the class described by the ObjectType */ public static ClassDescriptor getClassDescriptor(ObjectType type) { return instance().getClassDescriptorForDottedClassName(type.getClassName()); }
private void addCheckedCall(@DottedClassName String className, String methodName, String sig, int argumentParameterIndex, int typeParameterIndex) { ClassDescriptor c = DescriptorFactory.instance().getClassDescriptorForDottedClassName(className); String call = methodName+sig; Info info = new Info(c, argumentParameterIndex, typeParameterIndex); callMap.add(call, info); }
public @CheckForNull XMethod getXMethod(String cName, String mName, String sig, boolean isStatic) { ClassDescriptor classDesc = DescriptorFactory.instance().getClassDescriptorForDottedClassName(cName); ClassInfo xclass; // Get the XClass (really a ClassInfo object) try { xclass = (ClassInfo) Global.getAnalysisCache().getClassAnalysis(XClass.class, classDesc); } catch (MissingClassException e) { if (DEBUG) { System.out.println(" Class not found!"); } // AnalysisContext.currentAnalysisContext().getLookupFailureCallback().reportMissingClass(e.getClassDescriptor()); return null; } catch (CheckedAnalysisException e) { if (DEBUG) { System.out.println(" Class not found!"); } // AnalysisContext.logError("Error adding built-in nullness annotation", // e); return null; } XMethod xmethod = xclass.findMethod(mName, sig, isStatic); if (xmethod == null) { xmethod = XFactory.createXMethod(cName, mName, sig, isStatic); } return xmethod; }
ClassDescriptor classDesc = DescriptorFactory.instance().getClassDescriptorForDottedClassName(c); ClassInfo xclass;
public @Nonnull ClassDescriptor getClassDescriptor(Class<?> actualClass) { return getClassDescriptorForDottedClassName(actualClass.getName()); }
/** * Get the class descriptor. */ public final ClassDescriptor getClassDescriptor() { return DescriptorFactory.instance().getClassDescriptorForDottedClassName(className); }
@Override public ClassDescriptor getClassDescriptor() { return DescriptorFactory.instance().getClassDescriptorForDottedClassName(className); }
/** * Get a ClassDescriptor for the class described by given ObjectType object. * * @param type * an ObjectType * @return a ClassDescriptor for the class described by the ObjectType */ public static ClassDescriptor getClassDescriptor(ObjectType type) { return instance().getClassDescriptorForDottedClassName(type.getClassName()); }
public @CheckForNull XMethod getXMethod(String cName, String mName, String sig, boolean isStatic) { ClassDescriptor classDesc = DescriptorFactory.instance().getClassDescriptorForDottedClassName(cName); ClassInfo xclass; // Get the XClass (really a ClassInfo object) try { xclass = (ClassInfo) Global.getAnalysisCache().getClassAnalysis(XClass.class, classDesc); } catch (MissingClassException e) { if (DEBUG) { System.out.println(" Class not found!"); } // AnalysisContext.currentAnalysisContext().getLookupFailureCallback().reportMissingClass(e.getClassDescriptor()); return null; } catch (CheckedAnalysisException e) { if (DEBUG) { System.out.println(" Class not found!"); } // AnalysisContext.logError("Error adding built-in nullness annotation", // e); return null; } XMethod xmethod = xclass.findMethod(mName, sig, isStatic); if (xmethod == null) { xmethod = XFactory.createXMethod(cName, mName, sig, isStatic); } return xmethod; }
private void addCheckedCall(@DottedClassName String className, String methodName, String sig, int argumentParameterIndex, int typeParameterIndex) { ClassDescriptor c = DescriptorFactory.instance().getClassDescriptorForDottedClassName(className); String call = methodName+sig; Info info = new Info(c, argumentParameterIndex, typeParameterIndex); callMap.add(call, info); }
ClassDescriptor classDesc = DescriptorFactory.instance().getClassDescriptorForDottedClassName(c); ClassInfo xclass;