@Override public Map<String, GssFunction> get() { Map<String, GssFunction> gssFunctionMap = super.get(); return ImmutableMap.<String, GssFunction>builder().putAll(gssFunctionMap) // TODO add a namespace for gwt-specific function ? .put(EvalFunction.getName(), new EvalFunction()) .put(ValueFunction.getName(), new ValueFunction()) .put(ResourceUrlFunction.getName(), new ResourceUrlFunction(context)) .build(); } }
private CssParsingResult parseResources(List<URL> resources, ResourceContext context, TreeLogger logger) throws UnableToCompleteException { List<SourceCode> sourceCodes = new ArrayList<>(resources.size()); ImmutableMap.Builder<String, String> constantNameMappingBuilder = ImmutableMap.builder();
private static ImmutableMap<JClassType, String> extractMetadata( TreeLogger logger, RebindConfiguration configuration, JClassType type, Optional<JsonTypeInfo> jsonTypeInfo, Optional<JsonSubTypes> propertySubTypes, Optional<JsonSubTypes> typeSubTypes, ImmutableList<JClassType> allSubtypes ) throws UnableToCompleteException { ImmutableMap.Builder<JClassType, String> classToMetadata = ImmutableMap.builder(); classToMetadata.put( type, extractTypeMetadata( logger, configuration, type, type, jsonTypeInfo .get(), propertySubTypes, typeSubTypes, allSubtypes ) ); for ( JClassType subtype : allSubtypes ) { classToMetadata.put( subtype, extractTypeMetadata( logger, configuration, type, subtype, jsonTypeInfo .get(), propertySubTypes, typeSubTypes, allSubtypes ) ); } return classToMetadata.build(); }
@Override public Map<String, GssFunction> get() { Map<String, GssFunction> gssFunctionMap = super.get(); return ImmutableMap.<String, GssFunction>builder().putAll(gssFunctionMap) // TODO add a namespace for gwt-specific function ? .put(EvalFunction.getName(), new EvalFunction()) .put(ValueFunction.getName(), new ValueFunction()) .put(ResourceUrlFunction.getName(), new ResourceUrlFunction(context)) .build(); } }
private CssParsingResult parseResources(List<URL> resources, TreeLogger logger) throws UnableToCompleteException { List<SourceCode> sourceCodes = new ArrayList<SourceCode>(resources.size()); ImmutableMap.Builder<String, String> constantNameMappingBuilder = ImmutableMap.builder();
MethodSpec createMethod ) { ImmutableMap.Builder<String, String> propertyNameToVariableBuilder = ImmutableMap.builder();
@Override public Map<String, GssFunction> get() { Map<String, GssFunction> gssFunctionMap = super.get(); return ImmutableMap.<String, GssFunction>builder().putAll(gssFunctionMap) // TODO add a namespace for gwt-specific function ? .put(EvalFunction.getName(), new EvalFunction()) .put(ValueFunction.getName(), new ValueFunction()) .put(ResourceUrlFunction.getName(), new ResourceUrlFunction(context)) .build(); } }
private CssParsingResult parseResources(List<URL> resources, ResourceContext context, TreeLogger logger) throws UnableToCompleteException { List<SourceCode> sourceCodes = new ArrayList<>(resources.size()); ImmutableMap.Builder<String, String> constantNameMappingBuilder = ImmutableMap.builder();
ImmutableMap.Builder<String, PropertyInfo> result = ImmutableMap.builder();
} else { ImmutableMap.Builder<String, JParameter> creatorParameters = ImmutableMap.builder(); for ( int i = 0; i < creatorMethod.get().getParameters().length; i++ ) { creatorParameters.put( creators.get( 0 ).getParameters()[i].getAnnotation( JsonProperty.class ).value(), creators