Examples of ArrayType


Examples of org.apache.cxf.aegis.type.basic.ArrayType

                                           + info.getAegisTypeClass().getName(), e);
        }
    }

    protected AegisType createArrayType(TypeClassInfo info) {
        ArrayType type = new ArrayType();
        type.setTypeMapping(getTypeMapping());
        type.setTypeClass(info.getType());
        type.setSchemaType(createCollectionQName(info, type.getComponentType()));

        if (info.getMinOccurs() != -1) {
            type.setMinOccurs(info.getMinOccurs());
        } else {
            type.setMinOccurs(typeConfiguration.getDefaultMinOccurs());
        }
       
        if (info.getMaxOccurs() != -1) {
            type.setMaxOccurs(info.getMaxOccurs());
        }
       
        type.setFlat(info.isFlat());

        return type;
    }
View Full Code Here

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

          LazyClassGen.staticTjpType, Type.OBJECT, Type.OBJECT, Type.OBJECT, Type.OBJECT }, Constants.INVOKESTATIC));
      break;
    default:
      il.append(makeArgsObjectArray());
      il.append(fact.createInvoke("org.aspectj.runtime.reflect.Factory", "makeJP", LazyClassGen.tjpType, new Type[] {
          LazyClassGen.staticTjpType, Type.OBJECT, Type.OBJECT, new ArrayType(Type.OBJECT, 1) }, Constants.INVOKESTATIC));
      break;
    }

    return il;
  }
View Full Code Here

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

      // A new array instruction obviously tells us it is an array type !
      if (searchPtr.getInstruction().opcode == Constants.ANEWARRAY) {
        // ANEWARRAY ana = (ANEWARRAY)searchPoint.getInstruction();
        // Type t = ana.getType(getEnclosingClass().getConstantPool());
        // 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().getConstantPool());
        // 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() + ".  Perhaps avoid selecting clone with your pointcut?");
    }
    return tx;
View Full Code Here

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

  }

  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

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

   */

  private LazyMethodGen makeClosureClassAndReturnConstructor(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, new String[] {}, getWorld());
    InstructionFactory fact = new InstructionFactory(closureClass.getConstantPool());

View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.core.dom.ArrayType

   * Appends to the given buffer the fully qualified name (as it appears in the source) of the given type
   */
  private static void getFullyQualifiedName(Type type, StringBuffer buffer) {
    switch (type.getNodeType()) {
      case ASTNode.ARRAY_TYPE:
        ArrayType arrayType = (ArrayType) type;
        getFullyQualifiedName(arrayType.getElementType(), buffer);
        for (int i = 0, length = arrayType.getDimensions(); i < length; i++) {
          buffer.append('[');
          buffer.append(']');
        }
        break;
      case ASTNode.PARAMETERIZED_TYPE:
View Full Code Here

Examples of org.codehaus.xfire.aegis.type.basic.ArrayType

        }
    }

    protected Type createArrayType(TypeClassInfo info)
    {
        ArrayType type = new ArrayType();
        type.setTypeMapping(getTypeMapping());
        type.setTypeClass(info.getTypeClass());
        type.setSchemaType(createCollectionQName(info, type.getComponentType()));
       
        if (info.getMinOccurs() != -1) type.setMinOccurs(info.getMinOccurs());
        if (info.getMaxOccurs() != -1) type.setMaxOccurs(info.getMaxOccurs());
       
        type.setFlat(info.isFlat());
       
        return type;
    }
View Full Code Here

Examples of org.dmg.pmml._40.ArrayType

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetArray(ArrayType newArray, NotificationChain msgs) {
    ArrayType oldArray = array;
    array = newArray;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, _40Package.SET_PREDICATE_TYPE__ARRAY, oldArray, newArray);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

Examples of org.eclipse.jdt.core.dom.ArrayType

            SimpleType st = (SimpleType) t;
            return st.getName();
        }
        else if (t.isArrayType())
        {
            ArrayType at = (ArrayType) t;
            return findName(at.getElementType());
        }
        else
        {
            return null;
        }
View Full Code Here

Examples of org.eclipse.jdt.core.dom.ArrayType

                if (typeToAdd == null) {
                    //A special return type for constructors, nice one Eclipse...
                    signatureBuilder.append("V");
                } else {
                    if (typeToAdd.isArrayType()) {
                        ArrayType type = (ArrayType) typeToAdd;
                        int depth = type.getDimensions();
                        for (int i = 0; i < depth; i++) {
                            signatureBuilder.append('[');
                        }
                        //We still need to add the array component type, which might be primitive or a reference
                        typeToAdd = type.getElementType();
                    }

                    if (typeToAdd.isPrimitiveType()) {
                        PrimitiveType type = (PrimitiveType) typeToAdd;
                        signatureBuilder.append(PRIMITIVES_TO_SIGNATURES.get(type.getPrimitiveTypeCode()));
                    } else if (typeToAdd.isSimpleType()) {
                        SimpleType type = (SimpleType) typeToAdd;
                        String name;
                        if (type.getName().isQualifiedName()) {
                            name = type.getName().getFullyQualifiedName();
                        } else {
                            name = getFullyQualifiedNameForSimpleName(ast, type.getName());
                        }
                        name = name.replace('.', '/');
                        signatureBuilder.append("L").append(name).append(";");
                    } else if (typeToAdd.isQualifiedType()) {
                        QualifiedType type = (QualifiedType) typeToAdd;
                        String name = type.getQualifier().toString().replace('.', '/') + '/' + type.getName().getFullyQualifiedName().replace('.', '/');
                        signatureBuilder.append("L").append(name).append(";");
                    } else {
                        throw new IllegalArgumentException("We hit an unknown type " + typeToAdd);
                    }
                }
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.