Package org.aspectj.org.eclipse.jdt.internal.compiler.ast

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.ast.Argument


  }

  public static Argument makeFinalArgument(char[] name, TypeBinding typeBinding) {
    long pos = 0; // XXX encode start and end location
    LocalVariableBinding binding = new LocalVariableBinding(name, typeBinding, Modifier.FINAL, true);
    Argument ret = new Argument(name, pos, makeTypeReference(typeBinding), Modifier.FINAL);
    ret.binding = binding;
    return ret;
  }
View Full Code Here


    // Lets do a proper copy
    if (inArgs == null)
      return new Argument[] {};
    Argument[] outArgs = new Argument[inArgs.length];
    for (int i = 0; i < inArgs.length; i++) {
      Argument argument = inArgs[i];
      outArgs[i] = new Argument(argument.name, 0, argument.type, argument.modifiers);
    }
    return outArgs;

    // if (inArgs == null) return new Argument[] {};
    // int len = inArgs.length;
View Full Code Here

    Argument[] args = method.arguments;
    if (args != null) {
      int length = args.length;
      String[] signatures = new String[length];
      for (int i = 0; i < args.length; i++) {
        Argument arg = args[i];
        signatures[i] = typeSignature(arg.type);
      }
      return signatures;
    }
    return CharOperation.NO_STRINGS;
View Full Code Here

  if (arguments != null) {
    int size = arguments.length;
    method.parameters = Binding.NO_PARAMETERS;
    TypeBinding[] newParameters = new TypeBinding[size];
    for (int i = 0; i < size; i++) {
      Argument arg = arguments[i];
      TypeBinding parameterType = arg.type.resolveType(methodDecl.scope, true /* check bounds*/);
      if (parameterType == null) {
        foundArgProblem = true;
      } else if (parameterType == TypeBinding.VOID) {
        methodDecl.scope.problemReporter().argumentTypeCannotBeVoid(this, methodDecl, arg);
View Full Code Here

    TypeBinding[] parameters = method.parameters;
    Argument[] arguments = dec.arguments;

        FormalBinding[] bindings = new FormalBinding[baseArgumentCount];
        for (int i = 0, len = baseArgumentCount; i < len; i++) {
            Argument arg = arguments[i];
            String name = new String(arg.name);
            UnresolvedType type = world.fromBinding(parameters[i]);
            bindings[i] = new FormalBinding(type, name, i, arg.sourceStart, arg.sourceEnd, "unknown");
        }
       
View Full Code Here

    EclipseFactory factory = EclipseFactory.fromScopeLookupEnvironment(mDecl.scope);
    String extraArgName = maybeGetExtraArgName();
    if (extraArgName == null) extraArgName = "";
    FormalBinding[] ret = new FormalBinding[mDecl.arguments.length];
    for (int i = 0; i < mDecl.arguments.length; i++) {
            Argument arg = mDecl.arguments[i];
            String name = new String(arg.name);
      TypeBinding argTypeBinding = mDecl.binding.parameters[i];
            UnresolvedType type = factory.fromBinding(argTypeBinding);
      if  (CharOperation.equals(joinPoint,argTypeBinding.signature()) ||
         CharOperation.equals(joinPointStaticPart,argTypeBinding.signature()) ||
View Full Code Here

      len = ((AdviceDeclaration)enclosingDec).baseArgumentCount;
    }
   
    Argument[] ret = new Argument[len];
    for (int i=0; i < len; i ++) {
      Argument a = baseArguments[i];
      ret[i] = new Argument(a.name, AstUtil.makeLongPos(a.sourceStart, a.sourceEnd),
                a.type, Modifier.FINAL);
    }
    ret = AdviceDeclaration.addTjpArguments(ret);
   
    return ret;
View Full Code Here

 
 

  private static Argument makeFinalArgument(String name, TypeReference typeRef) {
    long pos = 0; //XXX encode start and end location
    return new Argument(name.toCharArray(), pos, typeRef, Modifier.FINAL);
  }
View Full Code Here

 
  public static Argument makeFinalArgument(char[] name, TypeBinding typeBinding) {
    long pos = 0; //XXX encode start and end location
    LocalVariableBinding binding =
      new LocalVariableBinding(name, typeBinding, Modifier.FINAL, true);
    Argument ret = new Argument(name, pos, makeTypeReference(typeBinding), Modifier.FINAL);
    ret.binding = binding;
    return ret;
  }
View Full Code Here

TOP

Related Classes of org.aspectj.org.eclipse.jdt.internal.compiler.ast.Argument

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.