Package org.aspectj.apache.bcel.generic

Examples of org.aspectj.apache.bcel.generic.ClassGen


  // ----

  public LazyClassGen(String class_name, String super_class_name, String file_name, int access_flags, String[] interfaces,
      World world) {
    myGen = new ClassGen(class_name, super_class_name, file_name, access_flags, interfaces);
    cp = myGen.getConstantPool();
    fact = new InstructionFactory(myGen, cp);
    regenerateGenericSignatureAttribute = true;
    this.world = world;
  }
View Full Code Here


    this.world = world;
  }

  // Non child type, so it comes from a real type in the world.
  public LazyClassGen(BcelObjectType myType) {
    myGen = new ClassGen(myType.getJavaClass());
    cp = myGen.getConstantPool();
    fact = new InstructionFactory(myGen, cp);
    this.myType = myType;
    world = myType.getResolvedTypeX().getWorld();
View Full Code Here

    // again haven't you? come on, admit it, no-one writes classes this big
    // by hand).
    // create an empty myGen so that we can give back a return value that
    // doesn't upset the
    // rest of the process.
    myGen = new ClassGen(myGen.getClassName(), myGen.getSuperclassName(), myGen.getFileName(), myGen.getModifiers(),
        myGen.getInterfaceNames());
    // raise an error against this compilation unit.
    getWorld().showMessage(IMessage.ERROR, WeaverMessages.format(WeaverMessages.CLASS_TOO_BIG, this.getClassName()),
        new SourceLocation(new File(myGen.getFileName()), 0), null);
  }
View Full Code Here

  // ----

  public LazyClassGen(String class_name, String super_class_name, String file_name, int access_flags, String[] interfaces,
      World world) {
    myGen = new ClassGen(class_name, super_class_name, file_name, access_flags, interfaces);
    cp = myGen.getConstantPool();
    fact = new InstructionFactory(myGen, cp);
    regenerateGenericSignatureAttribute = true;
    this.world = world;
  }
View Full Code Here

    this.world = world;
  }

  // Non child type, so it comes from a real type in the world.
  public LazyClassGen(BcelObjectType myType) {
    myGen = new ClassGen(myType.getJavaClass());
    cp = myGen.getConstantPool();
    fact = new InstructionFactory(myGen, cp);
    this.myType = myType;
    world = myType.getResolvedTypeX().getWorld();
View Full Code Here

    // again haven't you? come on, admit it, no-one writes classes this big
    // by hand).
    // create an empty myGen so that we can give back a return value that
    // doesn't upset the
    // rest of the process.
    myGen = new ClassGen(myGen.getClassName(), myGen.getSuperclassName(), myGen.getFileName(), myGen.getModifiers(),
        myGen.getInterfaceNames());
    // raise an error against this compilation unit.
    getWorld().showMessage(IMessage.ERROR, WeaverMessages.format(WeaverMessages.CLASS_TOO_BIG, this.getClassName()),
        new SourceLocation(new File(myGen.getFileName()), 0), null);
  }
View Full Code Here

  // ----

  public LazyClassGen(String class_name, String super_class_name, String file_name, int access_flags, String[] interfaces,
      World world) {
    myGen = new ClassGen(class_name, super_class_name, file_name, access_flags, interfaces);
    cp = myGen.getConstantPool();
    fact = new InstructionFactory(myGen, cp);
    regenerateGenericSignatureAttribute = true;
    this.world = world;
  }
View Full Code Here

    this.world = world;
  }

  // Non child type, so it comes from a real type in the world.
  public LazyClassGen(BcelObjectType myType) {
    myGen = new ClassGen(myType.getJavaClass());
    cp = myGen.getConstantPool();
    fact = new InstructionFactory(myGen, cp);
    this.myType = myType;
    world = myType.getResolvedTypeX().getWorld();
View Full Code Here

    // again haven't you? come on, admit it, no-one writes classes this big
    // by hand).
    // create an empty myGen so that we can give back a return value that
    // doesn't upset the
    // rest of the process.
    myGen = new ClassGen(myGen.getClassName(), myGen.getSuperclassName(), myGen.getFileName(), myGen.getModifiers(),
        myGen.getInterfaceNames());
    // raise an error against this compilation unit.
    getWorld().showMessage(IMessage.ERROR, WeaverMessages.format(WeaverMessages.CLASS_TOO_BIG, this.getClassName()),
        new SourceLocation(new File(myGen.getFileName()), 0), null);
  }
View Full Code Here

        String file_name,
        int access_flags,
        String[] interfaces,
        World world)
    {
        myGen = new ClassGen(class_name, super_class_name, file_name, access_flags, interfaces);
    constantPoolGen = myGen.getConstantPool();
        fact = new InstructionFactory(myGen, constantPoolGen);
        regenerateGenericSignatureAttribute = true;
        this.world = world;
    }
View Full Code Here

TOP

Related Classes of org.aspectj.apache.bcel.generic.ClassGen

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.