@Override public MetaType getRawType() { return GWTClass.newInstance(oracle, parameterizedType.getRawType()); }
@Override public MetaType getRawType() { return GWTClass.newInstance(oracle, parameterizedType.getRawType()); }
private void addImport(JType type) { JParameterizedType parametrizedType = type.isParameterized(); if (parametrizedType != null) { this.imports.add(parametrizedType.getRawType()); this.imports.addAll(Lists.newArrayList(parametrizedType.getTypeArgs())); } else { this.imports.add(type); } }
private void addImport(JType type) { JParameterizedType parametrizedType = type.isParameterized(); if (parametrizedType != null) { this.imports.add(parametrizedType.getRawType()); this.imports.addAll(Lists.newArrayList(parametrizedType.getTypeArgs())); } else { this.imports.add(type); } }
JParameterizedType isParameterized = type.isParameterized(); if (isParameterized != null) { return getCallSuffix(isParameterized.getRawType()); } else if (type.isPrimitive() != null) { if (type == JPrimitiveType.BOOLEAN) {
JParameterizedType isParameterized = type.isParameterized(); if (isParameterized != null) { return getCallSuffix(isParameterized.getRawType()); } else if (type.isPrimitive() != null) { if (type == JPrimitiveType.BOOLEAN) {
if (subjectHandler.equals(ptype.getRawType())) { alternativeHandlerMethod = method;
JParameterizedType parameterizedType = type.isParameterized(); if (parameterizedType != null) { generateSerializationSignature(context, parameterizedType.getRawType(), crc);
JParameterizedType parameterizedType = type.isParameterized(); if (parameterizedType != null) { generateSerializationSignature(context, parameterizedType.getRawType(), crc);
public boolean isElementAssignableTo(XMLElement elem, JClassType possibleSupertype) throws UnableToCompleteException { /* * Things like <W extends IsWidget & IsPlaid> */ JTypeParameter typeParameter = possibleSupertype.isTypeParameter(); if (typeParameter != null) { JClassType[] bounds = typeParameter.getBounds(); for (JClassType bound : bounds) { if (!isElementAssignableTo(elem, bound)) { return false; } } return true; } /* * Binder fields are always declared raw, so we're cheating if the user is * playing with parameterized types. We're happy enough if the raw types * match, and rely on them to make sure the specific types really do work. */ JParameterizedType parameterized = possibleSupertype.isParameterized(); if (parameterized != null) { return isElementAssignableTo(elem, parameterized.getRawType()); } JClassType fieldtype = findFieldType(elem); if (fieldtype == null) { return false; } return fieldtype.isAssignableTo(possibleSupertype); }
public boolean isElementAssignableTo(XMLElement elem, JClassType possibleSupertype) throws UnableToCompleteException { /* * Things like <W extends IsWidget & IsPlaid> */ JTypeParameter typeParameter = possibleSupertype.isTypeParameter(); if (typeParameter != null) { JClassType[] bounds = typeParameter.getBounds(); for (JClassType bound : bounds) { if (!isElementAssignableTo(elem, bound)) { return false; } } return true; } /* * Binder fields are always declared raw, so we're cheating if the user is * playing with parameterized types. We're happy enough if the raw types * match, and rely on them to make sure the specific types really do work. */ JParameterizedType parameterized = possibleSupertype.isParameterized(); if (parameterized != null) { return isElementAssignableTo(elem, parameterized.getRawType()); } JClassType fieldtype = findFieldType(elem); if (fieldtype == null) { return false; } return fieldtype.isAssignableTo(possibleSupertype); }
public boolean isElementAssignableTo(XMLElement elem, JClassType possibleSupertype) throws UnableToCompleteException { /* * Things like <W extends IsWidget & IsPlaid> */ JTypeParameter typeParameter = possibleSupertype.isTypeParameter(); if (typeParameter != null) { JClassType[] bounds = typeParameter.getBounds(); for (JClassType bound : bounds) { if (!isElementAssignableTo(elem, bound)) { return false; } } return true; } /* * Binder fields are always declared raw, so we're cheating if the user is * playing with parameterized types. We're happy enough if the raw types * match, and rely on them to make sure the specific types really do work. */ JParameterizedType parameterized = possibleSupertype.isParameterized(); if (parameterized != null) { return isElementAssignableTo(elem, parameterized.getRawType()); } JClassType fieldtype = findFieldType(elem); if (fieldtype == null) { return false; } return fieldtype.isAssignableTo(possibleSupertype); }
public boolean isElementAssignableTo(XMLElement elem, JClassType possibleSupertype) throws UnableToCompleteException { /* * Things like <W extends IsWidget & IsPlaid> */ JTypeParameter typeParameter = possibleSupertype.isTypeParameter(); if (typeParameter != null) { JClassType[] bounds = typeParameter.getBounds(); for (JClassType bound : bounds) { if (!isElementAssignableTo(elem, bound)) { return false; } } return true; } /* * Binder fields are always declared raw, so we're cheating if the user is * playing with parameterized types. We're happy enough if the raw types * match, and rely on them to make sure the specific types really do work. */ JParameterizedType parameterized = possibleSupertype.isParameterized(); if (parameterized != null) { return isElementAssignableTo(elem, parameterized.getRawType()); } JClassType fieldtype = findFieldType(elem); if (fieldtype == null) { return false; } return fieldtype.isAssignableTo(possibleSupertype); }
factoryType = paramType.getRawType();
factoryType = paramType.getRawType();
createFieldSerializer(logger, ctx, parameterizedType.getRawType()); return;
createFieldSerializer(logger, ctx, parameterizedType.getRawType()); return;
/** * @param boxed true if the primitive should be boxed. Useful when use in a parameterized type. * @param type type to convert * * @return the raw {@link TypeName} without parameter */ public TypeName rawName( boolean boxed, JType type ) { if ( null != type.isPrimitive() ) { return primitiveName( type.isPrimitive(), boxed ); } else if ( null != type.isParameterized() ) { return className( type.isParameterized().getRawType() ); } else if ( null != type.isGenericType() ) { return className( type.isGenericType().getRawType() ); } else if ( null != type.isArray() ) { return arrayName( type.isArray() ); } else if ( null != type.isTypeParameter() ) { return typeVariableName( type.isTypeParameter() ); } else { return className( type.isClassOrInterface() ); } }