Package org.eclipse.jdt.internal.core.dom.rewrite

Examples of org.eclipse.jdt.internal.core.dom.rewrite.LineInformation


    if (rootNode == null) {
      return new MultiTextEdit(); // no changes
    }

    char[] content= document.get().toCharArray();
    LineInformation lineInfo= LineInformation.create(document);
    String lineDelim= TextUtilities.getDefaultLineDelimiter(document);

    ASTNode astRoot= rootNode.getRoot();
    List commentNodes= astRoot instanceof CompilationUnit ? ((CompilationUnit) astRoot).getCommentList() : null;
    Map currentOptions = options == null ? JavaCore.getOptions() : options;
View Full Code Here


    if (typeRoot == null || typeRoot.getBuffer() == null) {
      throw new IllegalArgumentException("This API can only be used if the AST is created from a compilation unit or class file"); //$NON-NLS-1$
    }

    char[] content= typeRoot.getBuffer().getCharacters();
    LineInformation lineInfo= LineInformation.create(astRoot);
    String lineDelim= typeRoot.findRecommendedLineSeparator();
    Map options= typeRoot.getJavaProject().getOptions(true);

    return internalRewriteAST(content, lineInfo, lineDelim, astRoot.getCommentList(), options, rootNode, (RecoveryScannerData)astRoot.getStatementsRecoveryData());
  }
View Full Code Here

          int extendedLength = rootNode.getExtendedLength(node);
          return new SourceRange(extendedStartPosition, extendedLength);
        }
      };
      char[] content= document.get().toCharArray();
      LineInformation lineInfo= LineInformation.create(document);
      String lineDelim= TextUtilities.getDefaultLineDelimiter(document);
      List comments= rootNode.getCommentList();

      Map currentOptions = options == null ? JavaCore.getOptions() : options;
      ASTRewriteAnalyzer visitor = new ASTRewriteAnalyzer(content, lineInfo, lineDelim, result, this.eventStore, this.nodeStore, comments, currentOptions, xsrComputer, (RecoveryScannerData)rootNode.getStatementsRecoveryData());
View Full Code Here

    if (rootNode == null) {
      return new MultiTextEdit(); // no changes
    }

    char[] content= document.get().toCharArray();
    LineInformation lineInfo= LineInformation.create(document);
    String lineDelim= TextUtilities.getDefaultLineDelimiter(document);

    ASTNode astRoot= rootNode.getRoot();
    List commentNodes= astRoot instanceof CompilationUnit ? ((CompilationUnit) astRoot).getCommentList() : null;
    Map currentOptions = options == null ? JavaCore.getOptions() : options;
View Full Code Here

    if (typeRoot == null || typeRoot.getBuffer() == null) {
      throw new IllegalArgumentException("This API can only be used if the AST is created from a compilation unit or class file"); //$NON-NLS-1$
    }

    char[] content= typeRoot.getBuffer().getCharacters();
    LineInformation lineInfo= LineInformation.create(astRoot);
    String lineDelim= typeRoot.findRecommendedLineSeparator();
    Map options= typeRoot.getJavaProject().getOptions(true);

    return internalRewriteAST(content, lineInfo, lineDelim, astRoot.getCommentList(), options, rootNode, (RecoveryScannerData)astRoot.getStatementsRecoveryData());
  }
View Full Code Here

          int extendedLength = rootNode.getExtendedLength(node);
          return new SourceRange(extendedStartPosition, extendedLength);
        }
      };
      char[] content= document.get().toCharArray();
      LineInformation lineInfo= LineInformation.create(document);
      String lineDelim= TextUtilities.getDefaultLineDelimiter(document);
      List comments= rootNode.getCommentList();

      Map currentOptions = options == null ? JavaCore.getOptions() : options;
      ASTRewriteAnalyzer visitor = new ASTRewriteAnalyzer(content, lineInfo, lineDelim, result, this.eventStore, this.nodeStore, comments, currentOptions, xsrComputer, (RecoveryScannerData)rootNode.getStatementsRecoveryData());
View Full Code Here

          int extendedLength = rootNode.getExtendedLength(node);
          return new SourceRange(extendedStartPosition, extendedLength);
        }
      };
      char[] content= document.get().toCharArray();
      LineInformation lineInfo= LineInformation.create(document);
      String lineDelim= TextUtilities.getDefaultLineDelimiter(document);
      List comments= rootNode.getCommentList();

      Map currentOptions = options == null ? JavaCore.getOptions() : options;
      ASTRewriteAnalyzer visitor = new ASTRewriteAnalyzer(content, lineInfo, lineDelim, result, this.eventStore, this.nodeStore, comments, currentOptions, xsrComputer, (RecoveryScannerData)rootNode.getStatementsRecoveryData());
View Full Code Here

    if (rootNode == null) {
      return new MultiTextEdit(); // no changes
    }

    char[] content= document.get().toCharArray();
    LineInformation lineInfo= LineInformation.create(document);
    String lineDelim= TextUtilities.getDefaultLineDelimiter(document);

    ASTNode astRoot= rootNode.getRoot();
    List commentNodes= astRoot instanceof CompilationUnit ? ((CompilationUnit) astRoot).getCommentList() : null;
    Map currentOptions = options == null ? JavaCore.getOptions() : options;
View Full Code Here

    if (typeRoot == null || typeRoot.getBuffer() == null) {
      throw new IllegalArgumentException("This API can only be used if the AST is created from a compilation unit or class file"); //$NON-NLS-1$
    }

    char[] content= typeRoot.getBuffer().getCharacters();
    LineInformation lineInfo= LineInformation.create(astRoot);
    String lineDelim= typeRoot.findRecommendedLineSeparator();
    Map options= typeRoot.getJavaProject().getOptions(true);

    return internalRewriteAST(content, lineInfo, lineDelim, astRoot.getCommentList(), options, rootNode, (RecoveryScannerData)astRoot.getStatementsRecoveryData());
  }
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.internal.core.dom.rewrite.LineInformation

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.