Package org.aspectj.util.GenericSignature

Examples of org.aspectj.util.GenericSignature.FieldTypeSignature


    }
    // Parameters
    eat("(");
    List paramList = new ArrayList();
    while (!maybeEat(")")) {
      FieldTypeSignature fsig = parseFieldTypeSignature(true);
      if (fsig != null) {
        paramList.add(fsig);
      } else {
        paramList.add(new GenericSignature.BaseTypeSignature(eatIdentifier()));
      }
    }
    TypeSignature[] params = new TypeSignature[paramList.size()];
    paramList.toArray(params);
    // return type
    returnType = parseFieldTypeSignature(true);
    if (returnType == null)
      returnType = new GenericSignature.BaseTypeSignature(eatIdentifier());
    // throws
    List throwsList = new ArrayList();
    while (maybeEat("^")) {
      FieldTypeSignature fsig = parseFieldTypeSignature(false);
      throwsList.add(fsig);
    }
    FieldTypeSignature[] throwsSigs = new FieldTypeSignature[throwsList.size()];
    throwsList.toArray(throwsSigs);
    return new GenericSignature.MethodTypeSignature(formals, params, returnType, throwsSigs);
View Full Code Here


    }
  }

  private ArrayTypeSignature parseArrayTypeSignature() {
    // opening [ already eaten
    FieldTypeSignature fieldType = parseFieldTypeSignature(true);
    if (fieldType != null) {
      return new ArrayTypeSignature(fieldType);
    } else {
      // must be BaseType array
      return new ArrayTypeSignature(new BaseTypeSignature(eatIdentifier()));
View Full Code Here

    } else if (maybeEat("+")) {
      isPlus = true;
    } else if (maybeEat("-")) {
      isMinus = true;
    }
    FieldTypeSignature sig = parseFieldTypeSignature(false);
    return new TypeArgument(isPlus, isMinus, sig);
  }
View Full Code Here

    }
    // Parameters
    eat("(");
    List<TypeSignature> paramList = new ArrayList<TypeSignature>();
    while (!maybeEat(")")) {
      FieldTypeSignature fsig = parseFieldTypeSignature(true);
      if (fsig != null) {
        paramList.add(fsig);
      } else {
        paramList.add(new GenericSignature.BaseTypeSignature(eatIdentifier()));
      }
    }
    TypeSignature[] params = new TypeSignature[paramList.size()];
    paramList.toArray(params);
    // return type
    returnType = parseFieldTypeSignature(true);
    if (returnType == null)
      returnType = new GenericSignature.BaseTypeSignature(eatIdentifier());
    // throws
    List<FieldTypeSignature> throwsList = new ArrayList<FieldTypeSignature>();
    while (maybeEat("^")) {
      FieldTypeSignature fsig = parseFieldTypeSignature(false);
      throwsList.add(fsig);
    }
    FieldTypeSignature[] throwsSigs = new FieldTypeSignature[throwsList.size()];
    throwsList.toArray(throwsSigs);
    return new GenericSignature.MethodTypeSignature(formals, params, returnType, throwsSigs);
View Full Code Here

    }
  }

  private ArrayTypeSignature parseArrayTypeSignature() {
    // opening [ already eaten
    FieldTypeSignature fieldType = parseFieldTypeSignature(true);
    if (fieldType != null) {
      return new ArrayTypeSignature(fieldType);
    } else {
      // must be BaseType array
      return new ArrayTypeSignature(new BaseTypeSignature(eatIdentifier()));
View Full Code Here

    } else if (maybeEat("+")) {
      isPlus = true;
    } else if (maybeEat("-")) {
      isMinus = true;
    }
    FieldTypeSignature sig = parseFieldTypeSignature(false);
    return new TypeArgument(isPlus, isMinus, sig);
  }
View Full Code Here

TOP

Related Classes of org.aspectj.util.GenericSignature.FieldTypeSignature

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.