Examples of ClassInfo


Examples of easysm.datatypes.information.ClassInfo

      jtextfield_nameClass.selectAll();
      jtextfield_nameClass.requestFocus();
      return;
    }

    ClassInfo newClass = new ClassInfo(name);

    if (classToMod == null)
      updateInputCD.addCDElement(newClass);
    else
      updateInputCD.updateCDElement(classToMod, newClass);
View Full Code Here

Examples of edu.umd.cs.findbugs.classfile.analysis.ClassInfo

        FBClassReader reader = analysisCache.getClassAnalysis(FBClassReader.class, descriptor);
        ClassParserInterface parser = new ClassParserUsingASM(reader, descriptor, classData.getCodeBaseEntry());

        ClassInfo.Builder classInfoBuilder = new ClassInfo.Builder();
        parser.parse(classInfoBuilder);
        ClassInfo classInfo = classInfoBuilder.build();

        if (!classInfo.getClassDescriptor().equals(descriptor)) {
            throw new ClassNameMismatchException(descriptor, classInfo.getClassDescriptor(), classData.getCodeBaseEntry());
        }
        return classInfo;
    }
View Full Code Here

Examples of flex2.compiler.as3.binding.ClassInfo

    {
    DocumentInfo docInfo = (DocumentInfo) unit.getContext().getAttribute(MxmlCompiler.DOCUMENT_INFO);
        Source source = unit.getSource();

        //  get parsed superclass info - NOTE may be null in case of error
        ClassInfo baseClassInfo = getClassInfo(source, symbolTable, docInfo.getQualifiedSuperClassName());
        if (baseClassInfo == null && docInfo.getQualifiedSuperClassName() != null)
        {
            String qualifiedClassName = NameFormatter.toDot(docInfo.getPackageName(), docInfo.getClassName());
            ThreadLocalToolkit.log(new BaseClassNotFound(qualifiedClassName, docInfo.getQualifiedSuperClassName()), source);
            return;
View Full Code Here

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

     * @throws java.io.IOException
     */

    public ClassInfo load(byte bitfield, CapInputStream in) throws UnableToReadCapFileException {

        ClassInfo classInfo = new ClassInfo();

        classInfo.setFlags(bitfield);

        // superClassRef loading
        classInfo.setSuperClassRef(new ClassRefRead().load(in));

        // declaredInstancedSize reading
        classInfo.setDeclaredInstanceSize(in.readByte());

        // firstRefToken reading
        classInfo.setFirstReferenceToken(in.readByte());

        // refCount reading
        classInfo.setReferenceCount(in.readByte());

        // publicMethodTableBase reading
        classInfo.setPublicMethodTableBase(in.readByte());

        // publicMethodTableCount reading
        classInfo.setPublicMethodTableCount(in.readByte());

        // packageMethodTableBase reading
        classInfo.setPackageMethodTableBase(in.readByte());

        // packageMethodTableCount reading
        classInfo.setPackageMethodTableCount(in.readByte());

        // publicVirtualMethodTable reading
        classInfo.getPublicVirtualMethodTable().clear();

        for (int i = 0; i < classInfo.getPublicMethodTableCount(); i++) {
            classInfo.getPublicVirtualMethodTable().add(in.readShort());

        }

        // packageVirtualMethodTable reading
        classInfo.getPackageVirtualMethodTable().clear();

        for (int i = 0; i < classInfo.getPackageMethodTableCount(); i++) {
            classInfo.getPackageVirtualMethodTable().add(in.readShort());
        }

        // interfaces reading
        classInfo.getInterfaces().clear();

        // the number of entries entries in the interfaces array
        // is in the second nibble of the bitField
        byte interfaceCount = (byte) (bitfield & 0x0F);

        for (int i = 0; i < interfaceCount; i++) {
            ImplementedInterfaceInfo impInt = new ImplementedInterfaceInfoRead().load(in);
            classInfo.getInterfaces().add(impInt);
        }

        // remoteInterfaces reading
        // only if the ACC_REMOTE flag has the value 0


        if ((bitfield & ClassComponent.ACC_REMOTE) == ClassComponent.ACC_REMOTE) {
            classInfo.setRemoteInterfacesInfo(new RemoteInterfaceInfoRead().load(in));
        } else {
            classInfo.setRemoteInterfacesInfo(null);
        }

        return classInfo;
    }
View Full Code Here

Examples of gov.nasa.jpf.autodoc.types.info.ClassInfo

    if (info.isModel(name)) {
      return info.getModel(name);
    }
   
    try {
      ClassInfo cls = new ClassInfo();
     
      if (info.isParsed(name)) {
        cls = info.getCls(name);
      } else {
        String mdlname = NameUtils.normalizeName(name);
View Full Code Here

Examples of gov.nasa.jpf.jvm.ClassInfo

  public static int getNonNativeMods(int mod) {
    return mod & ~Modifier.NATIVE;
  }
 
  public static void main(String[] args) {
    ClassInfo model = new ModelClassProvider().loadClassInfo("java.lang.System");
    ClassInfo peer  = new NativePeerProvider().loadNativePeerClass(model);
   
    MethodInfo modelMethod = model.getMethod("currentTimeMillis", "()J", false);
    System.out.println(modelMethod);
   
    MethodInfo peerMethod = peer.getMethod(
        "currentTimeMillis____J", "(Lgov/nasa/jpf/jvm/MJIEnv;I)J", false);
    System.out.println(peerMethod);
   
    MangledMethodInfoComparator comp1 = new MangledMethodInfoComparator(true);
    System.out.println(comp1.compare(modelMethod, peerMethod));
   
    MangledMethodInfoComparator comp2 = new MangledMethodInfoComparator(false);
    System.out.println(comp2.compare(peerMethod, modelMethod));
  
    MethodInfo[] methods = peer.getDeclaredMethodInfos();
    Arrays.sort(methods, new MethodInfoComparator());
    System.out.println(Arrays.binarySearch(methods, modelMethod, comp2));
  }
View Full Code Here

Examples of gov.nasa.jpf.vm.ClassInfo

    TestJPF.assertEquals(JVM2JPFTestConversion.i, 10);

    ConverterBase.reset(env);
   
    // converting JVM class to JPF class
    ClassInfo ci = JVM2JPFConverter.obtainJPFCls(cls, env);

    return ci.getClassObjectRef();
  }
View Full Code Here

Examples of io.fabric8.apmagent.ClassInfo

    }

    @Override
    public byte[] transform(ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws IllegalClassFormatException {
        byte[] buffer = null;
        ClassInfo classInfo = context.getClassInfo(className);
        classInfo.setOriginalClass(classBeingRedefined);
        if (classInfo.getTransformed() == null) {
            //we haven't been transformed before
            classInfo.setOriginal(classfileBuffer);
        }
        if (!cleanUp.get()) {
            byte[] classBufferToRedefine = classInfo.getOriginal();

            if (configuration.isAudit(className)) {
                if (classInfo.isTransformed()) {
                    //remove metrics from methods no longer defined
                    context.resetMethods(classInfo);
                }
                ClassReader cr = new ClassReader(classBufferToRedefine);

                ClassWriter cw = new ClassWriter(cr, ClassWriter.COMPUTE_MAXS | ClassWriter.COMPUTE_FRAMES);

                ApmClassVisitor visitor = new ApmClassVisitor(this, cw, classInfo);
                cr.accept(visitor, ClassReader.SKIP_FRAMES);
                buffer = cw.toByteArray();
                if (!verifyClass(className, buffer)) {
                    classInfo.setCanTransform(false);
                    buffer = null;
                }
                classInfo.setTransformed(buffer);
            }
        } else {
            if (classInfo.getOriginal() != null) {
                buffer = classInfo.getOriginal();
                context.resetAll(classInfo);
            }
        }
        return buffer;
    }
View Full Code Here

Examples of jadx.core.dex.info.ClassInfo

      if (insn.getType() == InsnType.CONSTRUCTOR) {
        ConstructorInsn co = (ConstructorInsn) insn;
        if (insn.getArgsCount() < 2) {
          continue;
        }
        ClassInfo clsInfo = co.getClassType();
        ClassNode constrCls = cls.dex().resolveClass(clsInfo);
        if (constrCls == null) {
          continue;
        }
        if (!clsInfo.equals(cls.getClassInfo()) && !constrCls.getAccessFlags().isEnum()) {
          continue;
        }
        RegisterArg nameArg = (RegisterArg) insn.getArg(0);
        // InsnArg pos = insn.getArg(1);
        // TODO add check: pos == j
View Full Code Here

Examples of jode.bytecode.ClassInfo

        public NSMutableArray names;
        public NSArray names() {
            if(names == null) {
                names = new NSMutableArray();
                ClassInfo ci = classInfo();
                FieldInfo fi[] = ci.getFields();
                for(int i = 0; i < fi.length; i++) {
                    FieldInfo f = fi[i];
                    names.addObject(f.getName());
                }
                MethodInfo mi[] = ci.getMethods();
                for(int i = 0; i < mi.length; i++) {
                    MethodInfo f = mi[i];
                    names.addObject(f.getName());
                }
                names.addObject(name());
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.