public ArrayPacker(ArrayType t) { this.at = t; this.componentT = toJtype.visit(itemType(), null); this.arrayT = componentT.array(); }
@Override public JType visitArray(ArrayType type, Void param) { return visit(type.getComponentType(), null).array(); }
@Override public JType getRawType() { return exposedType.array(); }
@Override public JType getRawType() { return exposedType.array(); }
@Override public JType getRawType() { return exposedType.array(); }
protected JClass getCoreListType() { return exposedType.array(); }
protected JClass getCoreListType() { return exposedType.array(); }
/** * Case from {@link #exposedType} to array of {@link #implType} . */ protected final JExpression castToImplTypeArray( JExpression exp ) { return JExpr.cast(implType.array(), exp); }
/** * Case from {@link #exposedType} to array of {@link #implType} . */ protected final JExpression castToImplTypeArray( JExpression exp ) { return JExpr.cast(implType.array(), exp); }
/** * Case from {@link #exposedType} to array of {@link #implType} . */ protected final JExpression castToImplTypeArray( JExpression exp ) { return JExpr.cast(implType.array(), exp); }
/** * Case from {@link #exposedType} to array of {@link #implType} . */ protected final JExpression castToImplTypeArray( JExpression exp ) { return JExpr.cast(implType.array(), exp); }
/** * Case from {@link #exposedType} to array of {@link #implType} . */ protected final JExpression castToImplTypeArray( JExpression exp ) { return JExpr.cast(implType.array(), exp); }
public JType toType(Outline o, Aspect aspect) { return itemType.toType(o,aspect).array(); }
public JType toType(Outline o, Aspect aspect) { return itemType.toType(o,aspect).array(); }
@Override public JType visitArray(ArrayType type, Void param) { return visit(type.getComponentType(), null).array(); }
@Override public JType visitArrayType(ArrayTypeTree at, Void __) { return visit(at.getType()).array(); }
public ArrayPacker(ArrayType t) { this.at = t; this.componentT = toJtype.visit(itemType(), null); this.arrayT = componentT.array(); }
protected JType _class(final Type configuration, final boolean isPrimitivesEnabled) { if (!isPrimitivesEnabled && primitives.contains(configuration.name()) && configuration.dimension() == 0) { JType _class = _type(primitiveClasses.get(configuration.name())); for (int i = 0; i < configuration.dimension(); i++) { _class = _class.array(); } return _class; } JType _class = _type(configuration.name(), configuration.generics()); for (int i = 0; i < configuration.dimension(); i++) { _class = _class.array(); } return _class; }
public JAnnotationArrayMember visit(XArrayClassAnnotationValue<?, ?> value) { JType type = CodeModelUtils.ref(this.codeModel, value.getItemClassName()); for (int index = 0; index < value.getDimension(); index++) { type = type.array(); } return param(type); }
public JAnnotationUse visit(XArrayClassAnnotationValue<?, ?> value) { JType type = CodeModelUtils.ref(this.codeModel, value.getItemClassName()); for (int index = 0; index < value.getDimension(); index++) { type = type.array(); } return param(type); }