Package org.eclipse.jdt.internal.compiler.lookup

Examples of org.eclipse.jdt.internal.compiler.lookup.BaseTypeBinding


     
    case Binding.ARRAY_TYPE:
      return new ArrayTypeImpl(_env, (ArrayBinding)binding);
     
    case Binding.BASE_TYPE:
      BaseTypeBinding btb = (BaseTypeBinding)binding;
      switch (btb.id) {
      case TypeIds.T_void:
        return getNoType(TypeKind.VOID);
      case TypeIds.T_null:
        return getNullType();
View Full Code Here


     * @see javax.lang.model.util.Types#boxedClass(javax.lang.model.type.PrimitiveType)
     */
    @Override
    public TypeElement boxedClass(PrimitiveType p) {
        PrimitiveTypeImpl primitiveTypeImpl = (PrimitiveTypeImpl) p;
        BaseTypeBinding baseTypeBinding = (BaseTypeBinding)primitiveTypeImpl._binding;
        TypeBinding boxed = _env.getLookupEnvironment().computeBoxingType(baseTypeBinding);
        return (TypeElement) _env.getFactory().newElement(boxed);
    }
View Full Code Here

        buffer.append(brackets);
        return String.valueOf(buffer);

      default :
        if (isPrimitive() || isNullType()) {
          BaseTypeBinding baseTypeBinding = (BaseTypeBinding) this.binding;
          return new String(baseTypeBinding.simpleName);
        }
        if (isAnonymous()) {
          return NO_NAME;
        }
View Full Code Here

      default :
        if (isAnonymous() || this.binding.isLocalType() || this.binding.isIntersectionCastType()) {
          return NO_NAME;
        }
        if (isPrimitive() || isNullType()) {
          BaseTypeBinding baseTypeBinding = (BaseTypeBinding) this.binding;
          return new String(baseTypeBinding.simpleName);
        }
        if (isMember()) {
          buffer = new StringBuffer();
          buffer
View Full Code Here

  private boolean containsLong(TypeBinding type) {
    if (!(type instanceof BaseTypeBinding)) {
      return false;
    }

    BaseTypeBinding btb = (BaseTypeBinding) type;
    if (btb.id == TypeIds.T_long) {
        return true;
    }

    return false;
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.internal.compiler.lookup.BaseTypeBinding

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.