: super(typeSystem, name) {
     this.typeSystem = typeSystem;
     this.descriptor = "L" + name + ";";
     numericTypeKind = TypeKinds[name];
     if (numericTypeKind == null) {
         numericTypeKind = NumericTypeKind.None;
     }
     new ClassReader(bytes).accept(new OutlineVisitor(this), ClassReader.SKIP_CODE | ClassReader.SKIP_DEBUG | ClassReader.SKIP_FRAMES);
     
     this.genericsScope = new Scope<String, TypeInfo>();
     this.genericsScope.enterScope();
 }
            : super(typeSystem, name)
        {
            this.typeSystem = typeSystem;
            this.descriptor = "L" + name + ";";
            numericTypeKind = TypeKinds[name];
            if (numericTypeKind == null)
            {
                numericTypeKind = NumericTypeKind.None;
            }
            new ClassReader(bytes).accept(new OutlineVisitor(this), ClassReader.SKIP_CODE | ClassReader.SKIP_DEBUG | ClassReader.SKIP_FRAMES);

            this.genericsScope = new Scope <String, TypeInfo>();
            this.genericsScope.enterScope();
        }
Exemplo n.º 3
0
            : super(library, typeKind) {
			switch (typeKind) {
			case Void:
				displayName = "void";
				descriptor = "V";
				numericTypeKind = NumericTypeKind.None;
				break;
			case Boolean:
				displayName = "boolean";
				descriptor = "Z";
				numericTypeKind = NumericTypeKind.None;
				break;
			case Byte:
				displayName = "byte";
				descriptor = "B";
				numericTypeKind = NumericTypeKind.Byte;
				break;
			case Char:
				displayName = "char";
				descriptor = "C";
				numericTypeKind = NumericTypeKind.Char;
				break;
			case Short:
				displayName = "short";
				descriptor = "S";
				numericTypeKind = NumericTypeKind.Short;
				break;
			case Int:
				displayName = "int";
				descriptor = "I";
				numericTypeKind = NumericTypeKind.Int;
				break;
			case Long:
				displayName = "long";
				descriptor = "J";
				numericTypeKind = NumericTypeKind.Long;
				break;
			case Float:
				displayName = "float";
				descriptor = "F";
				numericTypeKind = NumericTypeKind.Float;
				break;
			case Double:
				displayName = "double";
				descriptor = "D";
				numericTypeKind = NumericTypeKind.Double;
				break;
			default:
				throw new IllegalArgumentException("typeKind = " + typeKind);
			}
        }
Exemplo n.º 4
0
            : super(library, typeKind)
        {
            switch (typeKind)
            {
            case Void:
                displayName     = "void";
                descriptor      = "V";
                numericTypeKind = NumericTypeKind.None;
                break;

            case Boolean:
                displayName     = "boolean";
                descriptor      = "Z";
                numericTypeKind = NumericTypeKind.None;
                break;

            case Byte:
                displayName     = "byte";
                descriptor      = "B";
                numericTypeKind = NumericTypeKind.Byte;
                break;

            case Char:
                displayName     = "char";
                descriptor      = "C";
                numericTypeKind = NumericTypeKind.Char;
                break;

            case Short:
                displayName     = "short";
                descriptor      = "S";
                numericTypeKind = NumericTypeKind.Short;
                break;

            case Int:
                displayName     = "int";
                descriptor      = "I";
                numericTypeKind = NumericTypeKind.Int;
                break;

            case Long:
                displayName     = "long";
                descriptor      = "J";
                numericTypeKind = NumericTypeKind.Long;
                break;

            case Float:
                displayName     = "float";
                descriptor      = "F";
                numericTypeKind = NumericTypeKind.Float;
                break;

            case Double:
                displayName     = "double";
                descriptor      = "D";
                numericTypeKind = NumericTypeKind.Double;
                break;

            default:
                throw new IllegalArgumentException("typeKind = " + typeKind);
            }
        }