Package org.apache.bcel.generic

Examples of org.apache.bcel.generic.ArrayType


    public static InitFieldTypes getInstance(BCELClassEnhancer gen)
    {
        return new InitFieldTypes(
            ClassEnhancer.MN_FieldTypesInitMethod,
            Constants.ACC_PRIVATE | Constants.ACC_STATIC | Constants.ACC_FINAL,
            new ArrayType(BCELClassEnhancer.OT_CLASS, 1),
            Type.NO_ARGS,
            null,
            true,
            gen);
    }
View Full Code Here


  public static InitFieldFlags getInstance(BCELClassEnhancer gen)
    {
    return new InitFieldFlags(
      ClassEnhancer.MN_FieldFlagsInitMethod,
      Constants.ACC_PRIVATE | Constants.ACC_STATIC | Constants.ACC_FINAL,
      new ArrayType(Type.BYTE, 1),
      Type.NO_ARGS,
      null,
      true,
      gen);
  }
View Full Code Here

    {
    return new JdoReplaceFields(
      "jdoReplaceFields",
      Constants.ACC_PUBLIC | Constants.ACC_FINAL,
      Type.VOID,
      new Type[] { new ArrayType(Type.INT, 1)},
      new String[] { "fieldId" },
      false,
      gen,
      "jdoReplaceField");
  }
View Full Code Here

    {
        return new JdoProvideFields(
            "jdoProvideFields",
            Constants.ACC_PUBLIC | Constants.ACC_FINAL,
            Type.VOID,
            new Type[] { new ArrayType(Type.INT, 1)},
            new String[] { "fieldId" },
            false,
            gen,
            "jdoProvideField");
    }
View Full Code Here

            } else {
                throw new InternalError();
            }

        } else if (clazz.isArray()) {
            return new ArrayType(translate(clazz.getComponentType()), 1);

        } else {

            return new ObjectType(clazz.getName());
        }
View Full Code Here

        else if (typeClass.isArray()) {
            String arrayClssName = typeClass.getName();
            int dimensionCount = StringUtil.occurs(arrayClssName, '[');
            // Note: recursion here.
            Type arrayComponentType = computeType(typeClass.getComponentType());
            type = new ArrayType(arrayComponentType, dimensionCount);
        }
        else {
            String typeSignature = Utility.getSignature(typeClass.getName());
            type = Type.getType(typeSignature);
            Assert.that(type != null,
View Full Code Here

            bcelReturnType = Type.BYTE;
        }
        else if (type.endsWith("[]")) {
            int index = type.indexOf('[');
            int dimensions = type.length() - index >> 1; // we need number of dimensions
            bcelReturnType = new ArrayType(type.substring(0, index), dimensions);
        }
        else {
            bcelReturnType = new ObjectType(type);
        }
        return bcelReturnType;
View Full Code Here

            il.append(factory.createLoad(Type.OBJECT, idxParam));
            il.append(factory.createInvoke(
                    TransformationUtil.STATIC_METHOD_JOIN_POINT_CLASS,
                    "setParameters",
                    Type.VOID,
                    new Type[]{new ArrayType(Type.OBJECT, 1)},
                    Constants.INVOKEVIRTUAL
            ));
            idxParam++;
        } // end - if parameters.length != 0
View Full Code Here

            il.append(factory.createInvoke(
                    TransformationUtil.INTRODUCTION_CLASS,
                    "invoke",
                    Type.OBJECT,
                    new Type[]{Type.INT, new ArrayType(Type.OBJECT, 1), Type.OBJECT},
                    Constants.INVOKEVIRTUAL));
        }
        else {
            // get the aspectwerkz system
            il.append(new PUSH(cpg, uuid));
View Full Code Here

            il.append(factory.createLoad(Type.OBJECT, indexParam));
            il.append(factory.createInvoke(
                    TransformationUtil.MEMBER_METHOD_JOIN_POINT_CLASS,
                    "setParameters",
                    Type.VOID,
                    new Type[]{new ArrayType(Type.OBJECT, 1)},
                    Constants.INVOKEVIRTUAL
            ));
            indexParam++;

        } // end - if parameters.length != 0
View Full Code Here

TOP

Related Classes of org.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.