Package org.codehaus.jam.mutable

Examples of org.codehaus.jam.mutable.MParameter


    removeException(exceptionClass.getQualifiedName());
  }

  public MParameter addNewParameter() {
    if (mParameters == null) mParameters = new ArrayList();
    MParameter param = new ParameterImpl(defaultName(mParameters.size()),
                                          this,"java.lang.Object");
    mParameters.add(param);
    return param;
  }
View Full Code Here


    dest.setModifiers(src.getModifiers());
    Class[] exceptions = src.getExceptionTypes();
    addThrows(dest,exceptions);
    Class[] paramTypes = src.getParameterTypes();
    for(int i=0; i<paramTypes.length; i++) {
      MParameter p = addParameter(dest, i, paramTypes[i]);
      if (mTigerDelegate != null) mTigerDelegate.extractAnnotations(p,src,i);
    }
    if (mTigerDelegate != null) mTigerDelegate.extractAnnotations(dest,src);
  }
View Full Code Here

    dest.setReturnType(src.getReturnType().getName());
    Class[] exceptions = src.getExceptionTypes();
    addThrows(dest,exceptions);
    Class[] paramTypes = src.getParameterTypes();
    for(int i=0; i<paramTypes.length; i++) {
      MParameter p = addParameter(dest, i, paramTypes[i]);
      if (mTigerDelegate != null) mTigerDelegate.extractAnnotations(p,src,i);
    }
    if (mTigerDelegate != null) mTigerDelegate.extractAnnotations(dest,src);
  }
View Full Code Here

  private MParameter addParameter(MInvokable dest,
                                  int paramNum,
                                  Class paramType)
  {
    MParameter p = dest.addNewParameter();
    p.setSimpleName("param"+paramNum);
    p.setType(paramType.getName());
    return p;
  }
View Full Code Here

    mName = name;
  }

  public MParameter createParameter(MInvokable e) {
    if (e == null) throw new IllegalArgumentException("null invokable");
    MParameter param = e.addNewParameter();
    param.setSimpleName(mName);
    param.setUnqualifiedType(mType);
    return param;
  }
View Full Code Here

    throws XMLStreamException
  {
    out.setModifiers(assertCurrentInt(MODIFIERS));
    while(PARAMETER.equals(getElementName())) {
      nextElement();
      MParameter param = out.addNewParameter();
      param.setSimpleName(assertCurrentString(NAME));
      param.setType(assertCurrentString(TYPE));
      readAnnotatedElement(param);
      assertEnd(PARAMETER);
      nextElement();
    }
    readAnnotatedElement(out);
View Full Code Here

    mName = name;
  }

  public MParameter createParameter(MInvokable e) {
    if (e == null) throw new IllegalArgumentException("null invokable");
    MParameter param = e.addNewParameter();
    param.setSimpleName(mName);
    param.setUnqualifiedType(mType);
    return param;
  }
View Full Code Here

    removeException(exceptionClass.getQualifiedName());
  }

  public MParameter addNewParameter() {
    if (mParameters == null) mParameters = new ArrayList();
    MParameter param = new ParameterImpl(defaultName(mParameters.size()),
                                          this,"java.lang.Object");
    mParameters.add(param);
    return param;
  }
View Full Code Here

    throws XMLStreamException
  {
    out.setModifiers(assertCurrentInt(MODIFIERS));
    while(PARAMETER.equals(getElementName())) {
      nextElement();
      MParameter param = out.addNewParameter();
      param.setSimpleName(assertCurrentString(NAME));
      param.setType(assertCurrentString(TYPE));
      readAnnotatedElement(param);
      assertEnd(PARAMETER);
      nextElement();
    }
    readAnnotatedElement(out);
View Full Code Here

    dest.setModifiers(src.getModifiers());
    Class[] exceptions = src.getExceptionTypes();
    addThrows(dest,exceptions);
    Class[] paramTypes = src.getParameterTypes();
    for(int i=0; i<paramTypes.length; i++) {
      MParameter p = addParameter(dest, i, paramTypes[i]);
      if (mTigerDelegate != null) mTigerDelegate.extractAnnotations(p,src,i);
    }
    if (mTigerDelegate != null) mTigerDelegate.extractAnnotations(dest,src);
  }
View Full Code Here

TOP

Related Classes of org.codehaus.jam.mutable.MParameter

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.