Package org.eclipse.php.internal.core.ast.visitor

Examples of org.eclipse.php.internal.core.ast.visitor.AbstractVisitor


    }
    if (!ast.getSourceModule().getScriptProject().isOnBuildpath(
        ast.getSourceModule())) {
      return;
    }
    ast.accept(new AbstractVisitor() {
      /*
       * @see
       * org.eclipse.jdt.core.dom.ASTVisitor#visit(org.eclipse.jdt.core
       * .dom.MethodDeclaration)
       */
 
View Full Code Here


      FunctionDeclaration functionDeclaration = (FunctionDeclaration) elementAt;
      resolvedBinding = functionDeclaration.resolveFunctionBinding();
      formalParameters = functionDeclaration.formalParameters();
    }
    final List<String> exceptions = new ArrayList<String>();
    elementAt.accept(new AbstractVisitor() {
      public boolean visit(ThrowStatement throwStatement) {
        Expression expression = throwStatement.getExpression();
        if (expression instanceof ClassInstanceCreation) {
          ClassInstanceCreation cic = (ClassInstanceCreation) throwStatement
              .getExpression();
View Full Code Here

   * @param node
   * @return the aggregated strings for a given node
   */
  public static String getScalars(ASTNode node) {
    final StringBuilder builder = new StringBuilder();
    node.accept(new AbstractVisitor() {

      @Override
      public boolean visit(Scalar scalar) {
        builder.append(scalar.getStringValue());
        return true;
View Full Code Here

    // Init scanner and start ranges computing
    this.scanner = sc;
    // TODO : this.scanner.tokenizeWhiteSpace = true;

    // Start unit visit
    AbstractVisitor commentVisitor = new CommentMapperVisitor();
    unit.accept(commentVisitor);

    // Reduce leading arrays if necessary
    int leadingCount = this.leadingPtr + 1;
    if (leadingCount > 0 && leadingCount < this.leadingIndexes.length) {
View Full Code Here

TOP

Related Classes of org.eclipse.php.internal.core.ast.visitor.AbstractVisitor

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.