/** * For debugging use only. */ @Override public String toString() { return path + " = " + type.getParameterizedQualifiedSourceName(); } }
/** * For debugging use only. */ @Override public String toString() { return path + " = " + type.getParameterizedQualifiedSourceName(); } }
public int compare(JClassType o1, JClassType o2) { assert o1 != null; assert o2 != null; return o1.getParameterizedQualifiedSourceName().compareTo( o2.getParameterizedQualifiedSourceName()); } };
static String noEditorParameterizationMessage(JClassType editorIntf, JClassType type) { return String.format("The type %s is assignable to the raw %s type, but" + " a type parameterization is required.", type.getParameterizedQualifiedSourceName(), editorIntf.getName()); }
@Override protected ClassSourceFileComposerFactory createComposerFactory() throws UnableToCompleteException { return createClassSourceComposerFactory(JavaSourceCategory.CLASS, null, new String[] { source.getParameterizedQualifiedSourceName(), CallbackAware.class.getCanonicalName(), RestServiceProxy.class.getCanonicalName() }); }
static String noEditorParameterizationMessage(JClassType editorIntf, JClassType type) { return String.format("The type %s is assignable to the raw %s type, but" + " a type parameterization is required.", type.getParameterizedQualifiedSourceName(), editorIntf.getName()); }
private static void logSerializableTypes(TreeLogger logger, Set<JClassType> fieldSerializableTypes) { if (!logger.isLoggable(TreeLogger.DEBUG)) { return; } TreeLogger localLogger = logger.branch(TreeLogger.DEBUG, "Identified " + fieldSerializableTypes.size() + " serializable type" + ((fieldSerializableTypes.size() == 1) ? "" : "s"), null); for (JClassType fieldSerializableType : fieldSerializableTypes) { localLogger.branch(TreeLogger.DEBUG, fieldSerializableType .getParameterizedQualifiedSourceName(), null); } }
private static boolean isAllowedByFilter(TypeFilter filter, JClassType classType, ProblemReport problems) { if (!filter.isAllowed(classType)) { problems.add(classType, classType.getParameterizedQualifiedSourceName() + " is excluded by type filter ", Priority.AUXILIARY); return false; } return true; }
private static boolean isAllowedByFilter(TypeFilter filter, JClassType classType, ProblemReport problems) { if (!filter.isAllowed(classType)) { problems.add(classType, classType.getParameterizedQualifiedSourceName() + " is excluded by type filter ", Priority.AUXILIARY); return false; } return true; }
private void generateMapper() { p(); p("public static interface " + GWT_JACKSON_MAPPER_IF + " extends " + OBJECT_MAPPER_CLASS + "<" + source.getParameterizedQualifiedSourceName() + "> {};"); p(); }
@Override protected ClassSourceFileComposerFactory createComposerFactory() { ClassSourceFileComposerFactory composerFactory = new ClassSourceFileComposerFactory(packageName, shortName); addFuseSourceStaticImports(composerFactory); composerFactory.setSuperclass(JsonEncoderDecoderInstanceLocator.JSON_ENCODER_DECODER_CLASS + "<" + source.getParameterizedQualifiedSourceName() + ">"); return composerFactory; }
@Override protected ClassSourceFileComposerFactory createComposerFactory() { ClassSourceFileComposerFactory composerFactory = new ClassSourceFileComposerFactory(packageName, shortName); addFuseSourceStaticImports(composerFactory); composerFactory .setSuperclass(JSON_ENCODER_DECODER_CLASS + "<" + source.getParameterizedQualifiedSourceName() + ">"); return composerFactory; }
@Override protected ClassSourceFileComposerFactory createComposerFactory() { ClassSourceFileComposerFactory composerFactory = new ClassSourceFileComposerFactory(packageName, shortName); addFuseSourceStaticImports(composerFactory); composerFactory.setSuperclass(JsonEncoderDecoderInstanceLocator.JSON_ENCODER_DECODER_CLASS + "<" + source.getParameterizedQualifiedSourceName() + ">"); return composerFactory; }
private String createCacheKeyExpression(JMethod method) { String cacheKeyExpression = "\"" + type.getParameterizedQualifiedSourceName() + "#" + method.getName() + "\""; for (JParameter parameter : method.getParameters()) { cacheKeyExpression += "," + parameter.getName(); } return cacheKeyExpression; }
@Override protected void populateTemplateVariables(Map<String, Object> variables) { ActionDefinition actionDefinition = getMethodDefinition().getActionDefinitions().get(0); JClassType resultType = actionDefinition.getResultType(); variables.put("resultType", resultType.getParameterizedQualifiedSourceName()); variables.put("methodName", getMethod().getName()); variables.put("parameters", getMethodDefinition().getParameters()); variables.put("actionVariableName", getValidActionVariableName()); }
private boolean maybeInstantiable(TreeLogger logger, JClassType type, ProblemReport problems) { boolean success = canBeInstantiated(type, problems) && shouldConsiderFieldsForSerialization(type, problems); if (success) { if (logger.isLoggable(TreeLogger.DEBUG)) { logger.log(TreeLogger.DEBUG, type.getParameterizedQualifiedSourceName() + " might be instantiable"); } } return success; }
private boolean maybeInstantiable(TreeLogger logger, JClassType type, ProblemReport problems) { boolean success = canBeInstantiated(type, problems) && shouldConsiderFieldsForSerialization(type, problems); if (success) { if (logger.isLoggable(TreeLogger.DEBUG)) { logger.log(TreeLogger.DEBUG, type.getParameterizedQualifiedSourceName() + " might be instantiable"); } } return success; }
@Override public String toString() { JType type = field.getType(); JClassType enclosingType = field.getEnclosingType(); return "'" + type.getParameterizedQualifiedSourceName() + "' is reachable from field '" + field.getName() + "' of type '" + enclosingType.getParameterizedQualifiedSourceName() + "'"; } };
@Override public String toString() { String parameterString = typeParameter.getName(); if (typeParameter.getDeclaringClass() != null) { parameterString += " of class " + typeParameter.getDeclaringClass().getQualifiedSourceName(); } return "'" + typeParameter.getFirstBound().getParameterizedQualifiedSourceName() + "' is reachable as an upper bound of type parameter " + parameterString + ", which appears in a root type"; } };
public EditorData getRootData() throws UnableToCompleteException { TreeLogger rootLogger = logger.branch(TreeLogger.DEBUG, "Calculating root data for " + getEditorType().getParameterizedQualifiedSourceName()); return new EditorData.Builder(rootLogger).access( EditorAccess.root(getEditorType())).build(); }