Package org.eclipse.dltk.ast.declarations

Examples of org.eclipse.dltk.ast.declarations.Argument


  public boolean visit(MethodDeclaration method) throws Exception {
    this.fNodes.push(method);
    List<Argument> args = method.getArguments();
    String[] parameter = new String[args.size()];
    for (int a = 0; a < args.size(); a++) {
      Argument arg = args.get(a);
      parameter[a] = arg.getName();
    }

    ISourceElementRequestor.MethodInfo mi = new ISourceElementRequestor.MethodInfo();
    mi.parameterNames = parameter;
    mi.name = method.getName();
View Full Code Here


              RutaPreferenceConstants.EDITOR_FUNCTION_COLOR);

    }

    if (node instanceof Argument) {
      Argument m = (Argument) node;
      requestor.addPosition(m.getNameStart(), m.getNameEnd(),
              RutaPreferenceConstants.EDITOR_VARIABLE_COLOR);
    }

    if (node instanceof TypeDeclaration) {
View Full Code Here

  public boolean visit(MethodDeclaration method) throws Exception {
    this.fNodes.push(method);
    List<Argument> args = method.getArguments();
    String[] parameter = new String[args.size()];
    for (int a = 0; a < args.size(); a++) {
      Argument arg = args.get(a);
      parameter[a] = arg.getName();
    }

    ISourceElementRequestor.MethodInfo mi = new ISourceElementRequestor.MethodInfo();
    mi.parameterNames = parameter;
    mi.name = method.getName();
View Full Code Here

      requestor.addPosition(m.getNameStart(), m.getNameEnd(), RutaPreferenceConstants.EDITOR_FUNCTION_COLOR);

    }

    if (node instanceof Argument) {
      Argument m = (Argument) node;
      requestor.addPosition(m.getNameStart(), m.getNameEnd(), RutaPreferenceConstants.EDITOR_VARIABLE_COLOR);
    }

    if (node instanceof TypeDeclaration) {

      TypeDeclaration t = (TypeDeclaration) node;
View Full Code Here

    if (args != null) {
      int length = args.size();
      String[] signatures = new String[length];
      int i = 0;
      for (Object object : args) {
        Argument arg = (Argument) object;
        signatures[i] = arg.getRef().getName();
      }
      return signatures;
    }
    return CharOperation.NO_STRINGS;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.dltk.ast.declarations.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.