public static Set<JType> getPossibleTypes(Outline outline, Aspect aspect, CTypeInfo typeInfo) { final Set<JType> types = new HashSet<JType>(); types.add(typeInfo.getType().toType(outline, aspect)); if (typeInfo instanceof CElementInfo) { final CElementInfo elementInfo = (CElementInfo) typeInfo; for (CElementInfo substitutionMember : elementInfo .getSubstitutionMembers()) { types.addAll(getPossibleTypes(outline, aspect, substitutionMember)); } } return types; }
public int compare( final CTypeInfo o1, final CTypeInfo o2 ) { final JType javaType1 = o1.toType( this.outline, Aspect.IMPLEMENTATION ); final JType javaType2 = o2.toType( this.outline, Aspect.IMPLEMENTATION ); int ret = 0; if ( !javaType1.binaryName().equals( javaType2.binaryName() ) && javaType1 instanceof JClass && javaType2 instanceof JClass ) { if ( ( (JClass) javaType1 ).isAssignableFrom( (JClass) javaType2 ) ) { ret = -1; } else if ( ( (JClass) javaType2 ).isAssignableFrom( (JClass) javaType1 ) ) { ret = 1; } } return ret; }
return t.getType().isBoxedType();
public boolean isFieldOutlineCore2(Mapping context, FieldOutline fieldOutline) { final CTypeInfo type = getCommonBaseTypeInfo(context, fieldOutline); assert type != null; return JTypeUtils.isBasicType(type.toType(fieldOutline.parent() .parent(), Aspect.EXPOSED)); }
return t.getType().isBoxedType();
public boolean isFieldOutlineCore2(Mapping context, FieldOutline fieldOutline) { final CTypeInfo type = getCommonBaseTypeInfo(context, fieldOutline); assert type != null; return JTypeUtils.isBasicType(type.toType(fieldOutline.parent() .parent(), Aspect.EXPOSED)); }
return t.getType().isBoxedType();
final JType javaType = type.toType( field.parent().parent(), Aspect.IMPLEMENTATION ); if ( !referencedTypes.contains( javaType ) ) final JType javaType = typeInfo.toType( field.parent().parent(), Aspect.IMPLEMENTATION ); final JConditional ifInstanceOf = sourceNotNull._then()._if( source._instanceof( javaType ) ); final JExpression copyExpr =
return t.getType().isBoxedType();
final JType javaType = type.toType( field.parent().parent(), Aspect.IMPLEMENTATION ); if ( !referencedTypes.contains( javaType ) ) final JType javaType = typeInfo.toType( field.parent().parent(), Aspect.IMPLEMENTATION ); final JConditional ifInstanceOf = copyLoop.body()._if( next._instanceof( javaType ) ); final JExpression copyExpr = this.getCopyExpression(
return t.getType().isBoxedType();
final JType javaType = typeInfo.toType( field.parent().parent(), Aspect.IMPLEMENTATION );
/** * Returns contents to be added to javadoc. */ protected final List<Object> listPossibleTypes( CPropertyInfo prop ) { List<Object> r = new ArrayList<Object>(); for( CTypeInfo tt : prop.ref() ) { JType t = tt.getType().toType(outline.parent(),Aspect.EXPOSED); if( t.isPrimitive() || t.isArray() ) r.add(t.fullName()); else { r.add(t); r.add("\n"); } } return r; }
/** * Returns contents to be added to javadoc. */ protected final List<Object> listPossibleTypes( CPropertyInfo prop ) { List<Object> r = new ArrayList<Object>(); for( CTypeInfo tt : prop.ref() ) { JType t = tt.getType().toType(outline.parent(),Aspect.EXPOSED); if( t.isPrimitive() || t.isArray() ) r.add(t.fullName()); else { r.add(t); r.add("\n"); } } return r; }
/** * Returns contents to be added to javadoc. */ protected final List<Object> listPossibleTypes( CPropertyInfo prop ) { List<Object> r = new ArrayList<Object>(); for( CTypeInfo tt : prop.ref() ) { JType t = tt.getType().toType(outline.parent(),Aspect.EXPOSED); if( t.isPrimitive() || t.isArray() ) r.add(t.fullName()); else { r.add(t); r.add("\n"); } } return r; }
/** * Returns contents to be added to javadoc. */ protected final List<Object> listPossibleTypes( CPropertyInfo prop ) { List<Object> r = new ArrayList<Object>(); for( CTypeInfo tt : prop.ref() ) { JType t = tt.getType().toType(outline.parent(),Aspect.EXPOSED); if( t.isPrimitive() || t.isArray() ) r.add(t.fullName()); else { r.add(t); r.add("\n"); } } return r; }
/** * Returns contents to be added to javadoc. */ protected final List<Object> listPossibleTypes( CPropertyInfo prop ) { List<Object> r = new ArrayList<Object>(); for( CTypeInfo tt : prop.ref() ) { JType t = tt.getType().toType(outline.parent(),Aspect.EXPOSED); if( t.isPrimitive() || t.isArray() ) r.add(t.fullName()); else { r.add(t); r.add("\n"); } } return r; }
/** * Returns contents to be added to javadoc. */ protected final List<Object> listPossibleTypes( CPropertyInfo prop ) { List<Object> r = new ArrayList<Object>(); for( CTypeInfo tt : prop.ref() ) { JType t = tt.getType().toType(outline.parent(),Aspect.EXPOSED); if( t.isPrimitive() || t.isArray() ) r.add(t.fullName()); else { r.add(t); r.add("\n"); } } return r; }
/** * Returns contents to be added to javadoc. */ protected final List<Object> listPossibleTypes( CPropertyInfo prop ) { List<Object> r = new ArrayList<Object>(); for( CTypeInfo tt : prop.ref() ) { JType t = tt.getType().toType(outline.parent(),Aspect.EXPOSED); if( t.isPrimitive() || t.isArray() ) r.add(t.fullName()); else { r.add(t); r.add("\n"); } } return r; }
/** * Returns contents to be added to javadoc. * <p> * <b>Description and code copied from the class SingleField</b> * * @see <a href="https://jaxb2-commons.dev.java.net/source/browse/jaxb2-commons/property-listener-injector/src/com/sun/tools/xjc/addon/property_listener_injector/SingleField.java"> * https://jaxb2-commons.dev.java.net/source/browse/jaxb2-commons/property-listener-injector/src/com/sun/tools/xjc/addon/property_listener_injector/SingleField.java</a> */ protected final List<Object> listPossibleTypes( CPropertyInfo prop ) { List<Object> r = new ArrayList<Object>(); for( CTypeInfo tt : prop.ref() ) { JType t = tt.getType().toType(outline.parent(),Aspect.EXPOSED); if( t.isPrimitive() || t.isArray() ) r.add(t.fullName()); else { r.add(t); r.add("\n"); } } return r; }