Examples of ConstantPoolInfo


Examples of com.sun.enterprise.deployment.annotation.introspection.ConstantPoolInfo

    {
    }
   
    public void setCustomScaner( CustomAnnotationScanner scanner)
    {
      classFile.setConstantPoolInfo(new ConstantPoolInfo(scanner));
    }
View Full Code Here

Examples of com.sun.enterprise.deployment.annotation.introspection.ConstantPoolInfo

   
    private ClassFile classFile = new ClassFile();

    public AnnotationDetector() {
        CustomAnnotationScanner scanner = createAnnotationScanner();
        ConstantPoolInfo poolInfo = new ConstantPoolInfo(scanner);
        classFile.setConstantPoolInfo(poolInfo);
    }
View Full Code Here

Examples of com.sun.enterprise.deployment.annotation.introspection.ConstantPoolInfo

    private ClassFile classFile = new ClassFile();

    public EjbComponentAnnotationDetector() {
        CustomAnnotationScanner scanner = new EjbComponentAnnotationScanner();
        ConstantPoolInfo poolInfo = new ConstantPoolInfo(scanner);
        classFile.setConstantPoolInfo(poolInfo);
    }
View Full Code Here

Examples of com.sun.enterprise.deployment.annotation.introspection.ConstantPoolInfo

    /**
     * The component has been injected with any dependency and
     * will be placed into commission by the subsystem.
     */
    public void postConstruct() {
        classFile = new ClassFile(new ConstantPoolInfo(defaultScanner));
    }
View Full Code Here

Examples of com.sun.enterprise.deployment.annotation.introspection.ConstantPoolInfo

    protected final ClassFile classFile;
    protected final AnnotationScanner scanner;

    public AnnotationDetector(AnnotationScanner scanner) {
        this.scanner = scanner;
        ConstantPoolInfo poolInfo = new ConstantPoolInfo(scanner);
        classFile = new ClassFile(poolInfo);
    }
View Full Code Here

Examples of com.sun.enterprise.deployment.annotation.introspection.ConstantPoolInfo

    protected final ClassFile classFile;
    protected final AnnotationScanner scanner;

    public AnnotationDetector(AnnotationScanner scanner) {
        this.scanner = scanner;
        ConstantPoolInfo poolInfo = new ConstantPoolInfo(scanner);
        classFile = new ClassFile(poolInfo);
    }
View Full Code Here

Examples of net.sf.rej.java.constantpool.ConstantPoolInfo

  @Override
  public void processInstruction(IterationContext sc, Instruction instruction) {
    Parameters params = instruction.getParameters();
    for (int i = 0; i < params.getCount(); i++) {
      if (params.getType(i) == ParameterType.TYPE_CONSTANT_POOL_FIELD_REF) {
        ConstantPoolInfo cpi = sc.getDc().getConstantPool().get(
            params.getInt(i));
        RefInfo ri = (RefInfo) cpi;
        boolean classNamesMatch = ri.getClassName().equals(className);

        if (classNamesMatch) {
          String instructionLine = instruction.getMnemonic() + " "
              + instruction.getParameters().getString(sc.getDc());
          Link link = new Link();
          link.setText("Field Ref : " + sc.getCf().getFullClassName() + "." + sc.getMethod().getName() + " / " + instructionLine);
          link.setAnchor(Link.ANCHOR_METHOD_CODE);
          link.setProject(sc.getProject());
          link.setFile(sc.getFilename());
          link.setTab(Tab.EDITOR);
          link.setMethod(sc.getMethod());
          link.setPosition(sc.getDc().getPosition());

          MainWindow.getInstance().getSearchTab().addResult(link);
          this.resultCount++;
        }

      } else if (params.getType(i) == ParameterType.TYPE_CONSTANT_POOL_METHOD_REF) {
        ConstantPoolInfo cpi = sc.getDc().getConstantPool().get(
            params.getInt(i));
        RefInfo ri = (RefInfo) cpi;
        boolean classNamesMatch = ri.getClassName().equals(className);

        if (classNamesMatch) {
          String instructionLine = instruction.getMnemonic() + " "
              + instruction.getParameters().getString(sc.getDc());
          Link link = new Link();
          link.setText("Method Call : " + sc.getCf().getFullClassName() + "."  + sc.getMethod().getName() + " / " + instructionLine);
          link.setAnchor(Link.ANCHOR_METHOD_CODE);
          link.setProject(sc.getProject());
          link.setFile(sc.getFilename());
          link.setTab(Tab.EDITOR);
          link.setMethod(sc.getMethod());
          link.setPosition(sc.getDc().getPosition());
          MainWindow.getInstance().getSearchTab().addResult(link);
          this.resultCount++;
        }

      } else if (params.getType(i) == ParameterType.TYPE_CONSTANT_POOL_CLASS) {
        ConstantPoolInfo cpi = sc.getDc().getConstantPool().get(
            params.getInt(i));
        ClassInfo ci = (ClassInfo) cpi;
        boolean classNamesMatch = ci.getName().equals(className);

        if (classNamesMatch) {
View Full Code Here

Examples of net.sf.rej.java.constantpool.ConstantPoolInfo

  public String toString() {
    return this.index + " - " + this.getName();
  }

  public String getName() {
    ConstantPoolInfo cpi = this.pool.get(this.nameIndex);
    return cpi.getValue();
  }
View Full Code Here

Examples of net.sf.rej.java.constantpool.ConstantPoolInfo

        ConstantPool pool = new ConstantPool();
        pool.init(contantPoolCount);
        cf.setPool(pool);

        for (int i = 1; i < contantPoolCount; i++) {
            ConstantPoolInfo cpi = ConstantPoolInfo.getCPI(parser, pool);
            pool.set(i, cpi);

            // 8byte types take up two indices
            if (cpi.getType() == ConstantPoolInfo.LONG
                    || cpi.getType() == ConstantPoolInfo.DOUBLE)
                i++;
        }

        cf.setAccessFlags(parser.getShortAsInt());
        cf.setThisClass(parser.getShortAsInt());
View Full Code Here

Examples of net.sf.rej.java.constantpool.ConstantPoolInfo

  public int getNameIndex() {
    return this.nameIndex;
  }

  public String getName() {
    ConstantPoolInfo cpi = this.cp.get(this.nameIndex);

    return cpi.getValue();
  }
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.