本文整理了Java中org.jboss.errai.codegen.meta.MetaClass.asUnboxed()
方法的一些代码示例,展示了MetaClass.asUnboxed()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MetaClass.asUnboxed()
方法的具体详情如下:
包路径:org.jboss.errai.codegen.meta.MetaClass
类名称:MetaClass
方法名:asUnboxed
暂无
代码示例来源:origin: org.jboss.errai/errai-jaxrs-client
public static boolean canHandle(final MetaClass type, final String mimeType) {
boolean canHandle = false;
if (("text/plain".equals(mimeType) && type.asUnboxed().isPrimitive())
|| type.equals(MetaClassFactory.get(String.class))
|| type.equals(MetaClassFactory.get(Date.class))
|| type.isEnum()) {
canHandle = true;
}
return canHandle;
}
代码示例来源:origin: errai/errai
@Override
public MetaClass getType() {
Class<?> lhsType = null;
if (lhs != null) {
lhsType = lhs.getType().asUnboxed().asClass();
}
Class<?> rhsType = null;
if (rhs != null) {
rhsType = rhs.getType().asUnboxed().asClass();
}
return MetaClassFactory.get(promote(lhsType, rhsType));
}
代码示例来源:origin: errai/errai
@Override
public MetaClass getType() {
Class<?> lhsType = null;
if (lhs != null) {
lhsType = lhs.getType().asUnboxed().asClass();
}
Class<?> rhsType = null;
if (rhs != null) {
rhsType = rhs.getType().asUnboxed().asClass();
}
return MetaClassFactory.get(promote(lhsType, rhsType));
}
代码示例来源:origin: org.jboss.errai/errai-codegen
@Override
public MetaClass getType() {
Class<?> lhsType = null;
if (lhs != null) {
lhsType = lhs.getType().asUnboxed().asClass();
}
Class<?> rhsType = null;
if (rhs != null) {
rhsType = rhs.getType().asUnboxed().asClass();
}
return MetaClassFactory.get(promote(lhsType, rhsType));
}
代码示例来源:origin: org.jboss.errai/errai-codegen
@Override
public MetaClass getType() {
Class<?> lhsType = null;
if (lhs != null) {
lhsType = lhs.getType().asUnboxed().asClass();
}
Class<?> rhsType = null;
if (rhs != null) {
rhsType = rhs.getType().asUnboxed().asClass();
}
return MetaClassFactory.get(promote(lhsType, rhsType));
}
代码示例来源:origin: errai/errai
private boolean needsLazyInit(MetaClass type) {
MetaClass compType = type.getOuterComponentType().getErased();
return (!compType.asUnboxed().isPrimitive() && !compType.equals(MetaClassFactory.get(String.class)) && !context
.getDefinitionsFactory().hasBuiltInDefinition(compType));
}
代码示例来源:origin: org.jboss.errai/errai-marshalling
private boolean needsLazyInit(MetaClass type) {
MetaClass compType = type.getOuterComponentType().getErased();
return (!compType.asUnboxed().isPrimitive() && !compType.equals(MetaClassFactory.get(String.class)) && !context
.getDefinitionsFactory().hasBuiltInDefinition(compType));
}
代码示例来源:origin: org.jboss.errai/errai-marshalling
@Override
public void addDefinition(final MappingDefinition definition) {
final String fqcn = definition.getMappingClass().getFullyQualifiedName();
final String internalName = definition.getMappingClass().getInternalName();
putDefinitionIfAbsent(fqcn, definition);
if (definition.getMappingClass().isPrimitiveWrapper()) {
putDefinitionIfAbsent(definition.getMappingClass().asUnboxed().getInternalName(), definition);
putDefinitionIfAbsent(definition.getMappingClass().asUnboxed().getFullyQualifiedName(), definition);
}
if (!fqcn.equals(internalName) && definition.getMappingClass().isArray()
&& definition.getMappingClass().getOuterComponentType().isPrimitive()) {
putDefinitionIfAbsent(internalName, definition);
}
if (log.isDebugEnabled())
log.debug("loaded definition: " + fqcn);
}
代码示例来源:origin: errai/errai
@Override
public void addDefinition(final MappingDefinition definition) {
final String fqcn = definition.getMappingClass().getFullyQualifiedName();
final String internalName = definition.getMappingClass().getInternalName();
putDefinitionIfAbsent(fqcn, definition);
if (definition.getMappingClass().isPrimitiveWrapper()) {
putDefinitionIfAbsent(definition.getMappingClass().asUnboxed().getInternalName(), definition);
putDefinitionIfAbsent(definition.getMappingClass().asUnboxed().getFullyQualifiedName(), definition);
}
if (!fqcn.equals(internalName) && definition.getMappingClass().isArray()
&& definition.getMappingClass().getOuterComponentType().isPrimitive()) {
putDefinitionIfAbsent(internalName, definition);
}
if (log.isDebugEnabled())
log.debug("loaded definition: " + fqcn);
}
代码示例来源:origin: errai/errai
score += 6;
else if (arguments[i].isPrimitive() && arguments[i].asUnboxed().equals(actualParamType)) {
score += 6;
代码示例来源:origin: org.jboss.errai/errai-codegen
score += 6;
else if (arguments[i].isPrimitive() && arguments[i].asUnboxed().equals(actualParamType)) {
score += 6;
代码示例来源:origin: errai/errai
&& method.getReturnType().asUnboxed().getFullyQualifiedName().indexOf('.') == -1) {
代码示例来源:origin: org.jboss.errai/errai-codegen
&& method.getReturnType().asUnboxed().getFullyQualifiedName().indexOf('.') == -1) {
内容来源于网络,如有侵权,请联系作者删除!