Examples of line()


Examples of com.google.collide.shared.document.LineInfo.line()

      @Override
      public boolean event(InputScheme scheme, SignalEvent event) {
        SelectionModel selectionModel = getInputController().getEditor().getSelection();
        LineInfo cursorLineInfo =
            new LineInfo(selectionModel.getCursorLine(), selectionModel.getCursorLineNumber());
        int lastColumn = LineUtils.getLastCursorColumn(cursorLineInfo.line());
        selectionModel.setCursorPosition(cursorLineInfo, lastColumn);
        switchMode(Modes.INSERT);
        return true;
      }
    });
View Full Code Here

Examples of com.google.collide.shared.document.LineInfo.line()

            new LineInfo(selectionModel.getCursorLine(), selectionModel.getCursorLineNumber());
        String text = selectionModel.getCursorLine().getText();
        int column = selectionModel.getCursorColumn();
        column = TextUtils.moveByWord(text, column, true, false);
        if (column == -1) {
          Line cursorLine = cursorLineInfo.line().getNextLine();
          if (cursorLine != null) {
            cursorLineInfo = new LineInfo(cursorLine, cursorLineInfo.number() + 1);
            column = 0;
          } else {
            column = LineUtils.getLastCursorColumn(cursorLine); // at last character
View Full Code Here

Examples of com.google.collide.shared.document.LineInfo.line()

            new LineInfo(selectionModel.getCursorLine(), selectionModel.getCursorLineNumber());
        String text = selectionModel.getCursorLine().getText();
        int column = selectionModel.getCursorColumn();
        column = TextUtils.moveByWord(text, column, false, false);
        if (column == -1) {
          Line cursorLine = cursorLineInfo.line().getPreviousLine();
          if (cursorLine != null) {
            cursorLineInfo = new LineInfo(cursorLine, cursorLineInfo.number() - 1);
            column = LineUtils.getLastCursorColumn(cursorLine);
          } else {
            column = 0; // at first character in document
View Full Code Here

Examples of com.strobel.decompiler.languages.TextLocation.line()

    }

    @Override
    public TextLocation getEndLocation() {
        final TextLocation location = getLocation();
        return new TextLocation(location.line(), location.column() + 1);
    }

    @Override
    public <T, R> R acceptVisitor(final IAstVisitor<? super T, ? extends R> visitor, final T data) {
        return visitor.visitEmptyStatement(this, data);
View Full Code Here

Examples of com.sun.javadoc.SourcePosition.line()

    }
  }

  private boolean looksSynthesized(ExecutableMemberDoc memberDoc) {
    SourcePosition memberPos = memberDoc.position();
    int memberLine = memberPos.line();

    SourcePosition classPos = memberDoc.containingClass().position();
    int classLine = classPos.line();

    if (memberLine == classLine) {
View Full Code Here

Examples of com.sun.javadoc.SourcePosition.line()

  private boolean looksSynthesized(ExecutableMemberDoc memberDoc) {
    SourcePosition memberPos = memberDoc.position();
    int memberLine = memberPos.line();

    SourcePosition classPos = memberDoc.containingClass().position();
    int classLine = classPos.line();

    if (memberLine == classLine) {
      return true;
    } else {
      return false;
View Full Code Here

Examples of com.sun.javadoc.SourcePosition.line()

      ClassDoc cd = cda[i];

      // Make sure we have source.
      //
      SourcePosition p = cd.position();
      if (p == null || p.line() == 0) {
        // Skip this since it isn't ours (otherwise we would have source).
        //
        continue;
      }
View Full Code Here

Examples of com.sun.javadoc.SourcePosition.line()

    //
    // Add annotations
    //
    for (MethodDoc md : methodDocs) {
      SourcePosition sp = md.position();
      int line = sp.line() + 2;
      if (isTest(md)) {
        lines.add(line, "  @Test" + groupsLine);
      }
      else if (isSetUp(md)) {
        ppp("ADDING NEW BEFORE AT " + line);
View Full Code Here

Examples of com.sun.javadoc.SourcePosition.line()

  private void setPosition(MAnnotation target, Tag tag) {
    //add source position info, if available
    SourcePosition pos = tag.position();
    if (pos != null) {
      MSourcePosition mpos = target.createSourcePosition();
      mpos.setLine(pos.line());
      mpos.setColumn(pos.column());
      if (pos.file() != null) mpos.setSourceURI(pos.file().toURI());
    }
  }
View Full Code Here

Examples of com.sun.mirror.util.SourcePosition.line()

    //If no order is specified, it's undefined. We'll put it in source order.
    SourcePosition position1 = accessor1.getPosition();
    SourcePosition position2 = accessor2.getPosition();
    int comparison;
    if ((position1 != null) && (position2 != null)) {
      comparison = position1.line() - position2.line();
      if (comparison == 0) {
        comparison = accessor1.getPosition().column() - accessor2.getPosition().column();
      }
    }
    else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.