本文整理了Java中com.sun.codemodel.JType.array()
方法的一些代码示例,展示了JType.array()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JType.array()
方法的具体详情如下:
包路径:com.sun.codemodel.JType
类名称:JType
方法名:array
[英]Create an array type of this type. This method is undefined for primitive void type, which doesn't have any corresponding array representation.
[中]创建此类型的数组类型。对于基本void类型,此方法未定义,它没有任何对应的数组表示形式。
代码示例来源:origin: javaee/glassfish
public ArrayPacker(ArrayType t) {
this.at = t;
this.componentT = toJtype.visit(itemType(), null);
this.arrayT = componentT.array();
}
代码示例来源:origin: javaee/glassfish
@Override
public JType visitArray(ArrayType type, Void param) {
return visit(type.getComponentType(), null).array();
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-xjc
@Override
public JType getRawType() {
return exposedType.array();
}
代码示例来源:origin: apache/servicemix-bundles
@Override
public JType getRawType() {
return exposedType.array();
}
代码示例来源:origin: org.glassfish.metro/webservices-tools
@Override
public JType getRawType() {
return exposedType.array();
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-xjc
protected JClass getCoreListType() {
return exposedType.array();
}
代码示例来源:origin: sun-jaxb/jaxb-xjc
protected JClass getCoreListType() {
return exposedType.array();
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-xjc
/**
* Case from {@link #exposedType} to array of {@link #implType} .
*/
protected final JExpression castToImplTypeArray( JExpression exp ) {
return JExpr.cast(implType.array(), exp);
}
代码示例来源:origin: sun-jaxb/jaxb-xjc
/**
* Case from {@link #exposedType} to array of {@link #implType} .
*/
protected final JExpression castToImplTypeArray( JExpression exp ) {
return JExpr.cast(implType.array(), exp);
}
代码示例来源:origin: org.andromda.thirdparty.jaxb2_commons/jaxb-xjc
/**
* Case from {@link #exposedType} to array of {@link #implType} .
*/
protected final JExpression castToImplTypeArray( JExpression exp ) {
return JExpr.cast(implType.array(), exp);
}
代码示例来源:origin: apache/servicemix-bundles
/**
* Case from {@link #exposedType} to array of {@link #implType} .
*/
protected final JExpression castToImplTypeArray( JExpression exp ) {
return JExpr.cast(implType.array(), exp);
}
代码示例来源:origin: org.glassfish.metro/webservices-tools
/**
* Case from {@link #exposedType} to array of {@link #implType} .
*/
protected final JExpression castToImplTypeArray( JExpression exp ) {
return JExpr.cast(implType.array(), exp);
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-xjc
public JType toType(Outline o, Aspect aspect) {
return itemType.toType(o,aspect).array();
}
代码示例来源:origin: org.glassfish.metro/webservices-tools
public JType toType(Outline o, Aspect aspect) {
return itemType.toType(o,aspect).array();
}
代码示例来源:origin: eclipse-ee4j/glassfish
@Override
public JType visitArray(ArrayType type, Void param) {
return visit(type.getComponentType(), null).array();
}
代码示例来源:origin: com.cloudbees/groovy-cps-dgm-builder
@Override
public JType visitArrayType(ArrayTypeTree at, Void __) {
return visit(at.getType()).array();
}
代码示例来源:origin: eclipse-ee4j/glassfish
public ArrayPacker(ArrayType t) {
this.at = t;
this.componentT = toJtype.visit(itemType(), null);
this.arrayT = componentT.array();
}
代码示例来源:origin: net.anwiba.commons.tools/anwiba-tools-generator-bean
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;
}
代码示例来源:origin: highsource/jaxb2-annotate-plugin
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);
}
代码示例来源:origin: highsource/jaxb2-annotate-plugin
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);
}
内容来源于网络,如有侵权,请联系作者删除!