/** Returns {@code getDeclaringSource().toString()} value. */ @Override public String toString() { return getDeclaringSource().toString(); } }
/** Formats an object in a user friendly way. */ static Object convert(Object o) { ElementSource source = null; if (o instanceof ElementSource) { source = (ElementSource) o; o = source.getDeclaringSource(); } return convert(o, source); }
static void formatSource(Formatter formatter, Object source) { ElementSource elementSource = null; if (source instanceof ElementSource) { elementSource = (ElementSource) source; source = elementSource.getDeclaringSource(); } formatSource(formatter, source, elementSource); }
if (declaringSource instanceof ElementSource) { originalSource = (ElementSource) declaringSource; declaringSource = originalSource.getDeclaringSource();
/** Returns {@code getDeclaringSource().toString()} value. */ @Override public String toString() { return getDeclaringSource().toString(); } }
/** Returns {@code getDeclaringSource().toString()} value. */ @Override public String toString() { return getDeclaringSource().toString(); } }
/** * Returns {@code getDeclaringSource().toString()} value. */ @Override public String toString() { return getDeclaringSource().toString(); } }
/** Formats an object in a user friendly way. */ static Object convert(Object o) { ElementSource source = null; if (o instanceof ElementSource) { source = (ElementSource) o; o = source.getDeclaringSource(); } return convert(o, source); }
static void formatSource(Formatter formatter, Object source) { ElementSource elementSource = null; if (source instanceof ElementSource) { elementSource = (ElementSource) source; source = elementSource.getDeclaringSource(); } formatSource(formatter, source, elementSource); }
/** Formats an object in a user friendly way. */ static Object convert(Object o) { ElementSource source = null; if (o instanceof ElementSource) { source = (ElementSource) o; o = source.getDeclaringSource(); } return convert(o, source); }
public static Object convert(Object o) { ElementSource source = null; if (o instanceof ElementSource) { source = (ElementSource) o; o = source.getDeclaringSource(); } return convert(o, source); }
static void formatSource(Formatter formatter, Object source) { ElementSource elementSource = null; if (source instanceof ElementSource) { elementSource = (ElementSource) source; source = elementSource.getDeclaringSource(); } formatSource(formatter, source, elementSource); }
public static void formatSource(Formatter formatter, Object source) { ElementSource elementSource = null; if (source instanceof ElementSource) { elementSource = (ElementSource) source; source = elementSource.getDeclaringSource(); } formatSource(formatter, source, elementSource); }
/** * Returns a name for a Guice "source" object. This will typically be either a {@link * StackTraceElement} for when the binding is made to the instance, or a {@link Method} when a * provider method is used. */ @Override public String getSourceName(Object source) { if (source instanceof ElementSource) { source = ((ElementSource) source).getDeclaringSource(); } if (source instanceof Method) { source = StackTraceElements.forMember((Method) source); } if (source instanceof StackTraceElement) { return getFileString((StackTraceElement) source); } return stripPackages(source.toString()); }
if (declaringSource instanceof ElementSource) { originalSource = (ElementSource) declaringSource; declaringSource = originalSource.getDeclaringSource();
if (source != null && source instanceof ElementSource) { bean.setResourceDescription( ((ElementSource) source).getDeclaringSource().toString());
if (declaringSource instanceof ElementSource) { originalSource = (ElementSource) declaringSource; declaringSource = originalSource.getDeclaringSource();
if (declaringSource instanceof ElementSource) { originalSource = (ElementSource) declaringSource; declaringSource = originalSource.getDeclaringSource();