Examples of TypeDescriptor


Examples of com.buschmais.jqassistant.core.model.api.descriptor.TypeDescriptor

            ClassValueDescriptor valueDescriptor = createValue(ClassValueDescriptor.class, name);
            valueDescriptor.setValue(visitorHelper.getTypeDescriptor(type));
            addValue(name, valueDescriptor);
        } else {
            PrimitiveValueDescriptor valueDescriptor = createValue(PrimitiveValueDescriptor.class, name);
            TypeDescriptor typeDescriptor = visitorHelper.getTypeDescriptor(value.getClass().getName());
            valueDescriptor.setType(typeDescriptor);
            valueDescriptor.setValue(value);
            addValue(name, valueDescriptor);
        }
    }
View Full Code Here

Examples of com.buschmais.jqassistant.plugin.java.api.model.TypeDescriptor

        fieldDescriptor.setName(name);
        fieldDescriptor.setVolatile(hasFlag(access, Opcodes.ACC_VOLATILE));
        fieldDescriptor.setTransient(hasFlag(access, Opcodes.ACC_TRANSIENT));
        setModifiers(access, fieldDescriptor);
        if (signature == null) {
            TypeDescriptor type = visitorHelper.getTypeDescriptor(SignatureHelper.getType((desc)));
            fieldDescriptor.setType(type);
        } else {
            new SignatureReader(signature).accept(new AbstractTypeSignatureVisitor<FieldDescriptor>(fieldDescriptor, visitorHelper) {
                @Override
                public SignatureVisitor visitArrayType() {
View Full Code Here

Examples of com.buschmais.jqassistant.plugin.java.impl.store.descriptor.TypeDescriptor

  @Override
  public TypeDescriptor scanFile(Store store, StreamSource streamSource) throws IOException {
    DescriptorResolverFactory resolverFactory = new DescriptorResolverFactory(store);
    ClassVisitor visitor = new ClassVisitor(new VisitorHelper(store, resolverFactory));
    new ClassReader(streamSource.getInputStream()).accept(visitor, 0);
    TypeDescriptor typeDescriptor = visitor.getTypeDescriptor();
    scannedClasses++;
    return typeDescriptor;
  }
View Full Code Here

Examples of com.redhat.ceylon.compiler.java.runtime.model.TypeDescriptor

        ceylon.language.meta.model.Type<Container> appliedContainer = getAppliedContainer($reifiedContainer, type);
        Member<Container, Kind> member = type.getAppliedClassOrInterface(this.$reifiedType, $reifiedKind, types, appliedContainer);

        // This is all very ugly but we're trying to make it cheaper and friendlier than just checking the full type and showing
        // implementation types to the user, such as AppliedMemberClass
        TypeDescriptor actualReifiedContainer;
        TypeDescriptor actualKind;
       
        if(member instanceof AppliedMemberClass){
            actualReifiedContainer = ((AppliedMemberClass)member).$reifiedContainer;
            actualKind = TypeDescriptor.klass(ceylon.language.meta.model.Class.class,
                    ((AppliedMemberClass) member).$reifiedType,
View Full Code Here

Examples of com.volantis.mcs.model.descriptor.TypeDescriptor

        // Make sure that every class descriptor was created correctly.
//        Set orderedClassDescriptors = new TreeSet(COMPARATOR);
        MostSpecificClassMap map = new MostSpecificClassMap();
        for (Iterator i = class2Descriptor.values().iterator(); i.hasNext();) {
            TypeDescriptor descriptor = (TypeDescriptor) i.next();
            if (descriptor instanceof BeanClassDescriptorImpl) {
                BeanClassDescriptorImpl bean = (BeanClassDescriptorImpl) descriptor;
                if (!bean.isComplete()) {
                    throw new IllegalStateException(
                            "Descriptor for class " + descriptor.getTypeClass()
                                                      .getName() + " has not been built");
                }
            }

            map.put(descriptor.getTypeClass(), descriptor);
//            // Add them to the list in order so that each class comes after
//            // all classes that are derived from it. e.g. Object will come
//            // last.
//            orderedClassDescriptors.add(descriptor);
        }
View Full Code Here

Examples of fr.xlim.ssd.capmanipulator.library.TypeDescriptor

        short nbByteRead = (short) in.getByteRead();


        //we will read until the end of the componentTab
        while (in.getByteRead() < DescComp.getSize()) {
            TypeDescriptor t = new TypeDescriptorRead().load(in);
            typeDescriptorInfo.getTypeDesc().put(offset, t);
            offset += (in.getByteRead() - nbByteRead);
            nbByteRead = (short) in.getByteRead();
        }
View Full Code Here

Examples of net.sourceforge.javautil.bytecode.api.TypeDescriptor

    context.popStack();
    context.popStack();
  }

  public void box(BytecodeContextMethodASM context) {
    TypeDescriptor type = context.getStack(0);
     
    if (!type.isPrimitive()) throw new BytecodeException("Cannot box a non-primitive: " + type);
   
    //Type unboxed = getType(type);
    //context.getTarget().box(unboxed);
    context.pop(type);
    context.push(type.getBoxedType());
  }
View Full Code Here

Examples of net.sourceforge.javautil.bytecode.api.TypeDescriptor

    context.pop(type);
    context.push(type.getBoxedType());
  }
 
  public void unbox(BytecodeContextMethodASM context) {
    TypeDescriptor type = context.getStack(0);
   
    if (type.isPrimitive()) throw new BytecodeException("Cannot unbox a primitive: " + type);
   
    //Type boxed = getType(type);
    //context.getTarget().unbox(boxed);
    context.pop(type);
    context.push(type.getUnboxedType());
  }
View Full Code Here

Examples of net.sourceforge.javautil.bytecode.api.TypeDescriptor

    context.getTarget().visitVarInsn(type.getOpcode(ISTORE), idx);
    context.popStack();
  }
 
  public void loadLocal (BytecodeContextMethodASM context, int idx) {
    TypeDescriptor ts = context.getLocalVariable(idx).getType();
    Type type = getType(ts);
    context.getTarget().visitVarInsn(type.getOpcode(ILOAD), idx);
    context.push(ts);
  }
View Full Code Here

Examples of net.sourceforge.javautil.bytecode.api.TypeDescriptor

    for (IBytecodeReferenceable length : indices) length.load(context);
    if (indices.length == 1) {
      context.getTarget().visitTypeInsn(ANEWARRAY, type.getName());
      context.push(type.getArrayType(1));
    } else {
      TypeDescriptor atype = type.getArrayType(indices.length);
      context.getTarget().visitMultiANewArrayInsn(atype.getName(), indices.length);
      context.push(atype);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.