Package com.sun.mirror.type

Examples of com.sun.mirror.type.ArrayType


    public boolean isArrayButNotByteArray(TypeMirror t) {
        if(!isArray(t))
            return false;

        ArrayType at = (ArrayType) t;
        TypeMirror ct = at.getComponentType();

        return !ct.equals(primitiveByte);
    }
View Full Code Here


        return !ct.equals(primitiveByte);
    }

    public TypeMirror getComponentType(TypeMirror t) {
        if (t instanceof ArrayType) {
            ArrayType at = (ArrayType) t;
            return at.getComponentType();
        }

        throw new IllegalArgumentException();
    }
View Full Code Here

          targetType = TypeMirrorDecorator.decorate(actualTypeArguments.iterator().next());
        } else {
          targetType = getPropertyType();
        }
      } else if (decoratedPropertyType.isArray() && getPropertyType() instanceof ArrayType) {
        final ArrayType arrayType = (ArrayType) getPropertyType();
        targetType = TypeMirrorDecorator.decorate(arrayType.getComponentType());
      } else {
        targetType = getPropertyType();
      }
    }
View Full Code Here

        case SHORT:
          return "int";
      }
    }
    else if (decorated.isArray()) {
      ArrayType arrayType = (ArrayType) decorated;
      DecoratedTypeMirror decoratedComponentType = (DecoratedTypeMirror) TypeMirrorDecorator.decorate(arrayType.getComponentType());
      if (((decoratedComponentType.isPrimitive()) && (((PrimitiveType) decoratedComponentType).getKind() == PrimitiveType.Kind.CHAR))
        || (decoratedComponentType.isInstanceOf(Character.class.getName()))) {
        return "String";
      }
      else if (((decoratedComponentType.isPrimitive()) && (((PrimitiveType) decoratedComponentType).getKind() == PrimitiveType.Kind.BYTE))
View Full Code Here

    public boolean isArrayButNotByteArray(TypeMirror t) {
        if(!isArray(t))
            return false;

        ArrayType at = (ArrayType) t;
        TypeMirror ct = at.getComponentType();

        return !ct.equals(primitiveByte);
    }
View Full Code Here

        return !ct.equals(primitiveByte);
    }

    public TypeMirror getComponentType(TypeMirror t) {
        if (t instanceof ArrayType) {
            ArrayType at = (ArrayType) t;
            return at.getComponentType();
        }

        throw new IllegalArgumentException();
    }
View Full Code Here

    public boolean isArrayButNotByteArray(TypeMirror t) {
        if(!isArray(t))
            return false;

        ArrayType at = (ArrayType) t;
        TypeMirror ct = at.getComponentType();

        return !ct.equals(primitiveByte);
    }
View Full Code Here

        return !ct.equals(primitiveByte);
    }

    public TypeMirror getComponentType(TypeMirror t) {
        if (t instanceof ArrayType) {
            ArrayType at = (ArrayType) t;
            return at.getComponentType();
        }

        throw new IllegalArgumentException();
    }
View Full Code Here

    public boolean isArrayButNotByteArray(TypeMirror t) {
        if(!isArray(t))
            return false;

        ArrayType at = (ArrayType) t;
        TypeMirror ct = at.getComponentType();

        return !ct.equals(primitiveByte);
    }
View Full Code Here

        return !ct.equals(primitiveByte);
    }

    public TypeMirror getComponentType(TypeMirror t) {
        if (t instanceof ArrayType) {
            ArrayType at = (ArrayType) t;
            return at.getComponentType();
        }

        throw new IllegalArgumentException();
    }
View Full Code Here

TOP

Related Classes of com.sun.mirror.type.ArrayType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.