Package org.aspectj.apache.bcel.generic

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


            // A new array instruction obviously tells us it is an array type !
            if (searchPtr.getInstruction() instanceof ANEWARRAY) {
              //ANEWARRAY ana = (ANEWARRAY)searchPoint.getInstruction();
              //Type t = ana.getType(getEnclosingClass().getConstantPoolGen());
              // Just use a standard java.lang.object array - that will work fine
              return BcelWorld.fromBcel(new ArrayType(Type.OBJECT,1));
            }
            // A multi new array instruction obviously tells us it is an array type !
            if (searchPtr.getInstruction() instanceof MULTIANEWARRAY) {
              MULTIANEWARRAY ana = (MULTIANEWARRAY)searchPtr.getInstruction();
                // Type t = ana.getType(getEnclosingClass().getConstantPoolGen());
              // t = new ArrayType(t,ana.getDimensions());
              // Just use a standard java.lang.object array - that will work fine
              return BcelWorld.fromBcel(new ArrayType(Type.OBJECT,ana.getDimensions()));
            }
            throw new BCException("Can't determine real target of clone() when processing instruction "+
              searchPtr.getInstruction());
      }
      return tx;
View Full Code Here


 
  public void weaveCflowEntry(final BcelAdvice munger, final Member cflowField) {
    final boolean isPer = munger.getKind() == AdviceKind.PerCflowBelowEntry ||
                munger.getKind() == AdviceKind.PerCflowEntry;
   
    final Type objectArrayType = new ArrayType(Type.OBJECT, 1);
        final InstructionFactory fact = getFactory();       

    final BcelVar testResult = genTempVar(ResolvedType.BOOLEAN);

    InstructionList entryInstructions = new InstructionList();
View Full Code Here

    String closureClassName,
        LazyMethodGen callbackMethod,
        IntMap proceedMap)
    {
    String superClassName = "org.aspectj.runtime.internal.AroundClosure";
        Type objectArrayType = new ArrayType(Type.OBJECT, 1);
       
    LazyClassGen closureClass = new LazyClassGen(closureClassName,
                                           superClassName,
                                                 getEnclosingClass().getFileName(),
                                           Modifier.PUBLIC,
View Full Code Here

TOP

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

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.