Examples of Alignment


Examples of org.aspectj.org.eclipse.jdt.internal.formatter.align.Alignment

    this.scribe.printNextToken(TerminalTokens.TokenNameEQUAL, this.preferences.insert_space_before_assignment_operator);
    if (this.preferences.insert_space_after_assignment_operator) {
      this.scribe.space();
    }

    Alignment assignmentAlignment = this.scribe.createAlignment("assignmentAlignment", this.preferences.alignment_for_assignment, Alignment.R_OUTERMOST, 1, this.scribe.scanner.currentPosition); //$NON-NLS-1$
    this.scribe.enterAlignment(assignmentAlignment);
    boolean ok = false;
    do {
      try {
        this.scribe.alignFragment(assignmentAlignment, 0);
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.formatter.align.Alignment

   
    this.scribe.printNextToken(operator, this.preferences.insert_space_before_assignment_operator);
    if (this.preferences.insert_space_after_assignment_operator) {
      this.scribe.space();
    }
    Alignment assignmentAlignment = this.scribe.createAlignment("compoundAssignmentAlignment", this.preferences.alignment_for_assignment, Alignment.R_OUTERMOST, 1, this.scribe.scanner.currentPosition); //$NON-NLS-1$
    this.scribe.enterAlignment(assignmentAlignment);
    boolean ok = false;
    do {
      try {
        this.scribe.alignFragment(assignmentAlignment, 0);
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.formatter.align.Alignment

      if (numberOfParens > 0) {
        manageOpeningParenthesizedExpression(conditionalExpression, numberOfParens);
      }
      conditionalExpression.condition.traverse(this, scope);
   
      Alignment conditionalExpressionAlignment =this.scribe.createAlignment(
          "conditionalExpression", //$NON-NLS-1$
          this.preferences.alignment_for_conditional_expression,
          2,
          this.scribe.scanner.currentPosition);
   
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.formatter.align.Alignment

    if (arguments != null) {
      if (this.preferences.insert_space_after_opening_paren_in_method_invocation) {
        this.scribe.space();
      }
      int argumentLength = arguments.length;
      Alignment argumentsAlignment =this.scribe.createAlignment(
          "explicit_constructor_call",//$NON-NLS-1$
          this.preferences.alignment_for_arguments_in_explicit_constructor_call,
          argumentLength,
          this.scribe.scanner.currentPosition);
      this.scribe.enterAlignment(argumentsAlignment);
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.formatter.align.Alignment

          if (elseStatement != null && (this.preferences.insert_new_line_before_else_in_if_statement)) {
            this.scribe.printNewLine();
          }
        }
      } else if (elseStatement == null && this.preferences.keep_simple_if_on_one_line) {
        Alignment compactIfAlignment = this.scribe.createAlignment(
            "compactIf", //$NON-NLS-1$
            this.preferences.alignment_for_compact_if,
            Alignment.R_OUTERMOST,
            1,
            this.scribe.scanner.currentPosition,
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.formatter.align.Alignment

    CascadingMethodInvocationFragmentBuilder builder = buildFragments(messageSend, scope);
   
    if (builder.size() >= 3 && numberOfParens == 0) {
      formatCascadingMessageSends(builder, scope);
    } else {
      Alignment messageAlignment = null;
      if (!messageSend.receiver.isImplicitThis()) {
        messageSend.receiver.traverse(this, scope);
        messageAlignment = this.scribe.createAlignment(
            "messageAlignment", //$NON-NLS-1$
            this.preferences.alignment_for_selector_in_method_invocation,
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.formatter.align.Alignment

    if (arguments != null) {
      if (this.preferences.insert_space_after_opening_paren_in_method_invocation) {
        this.scribe.space();
      }
      int argumentLength = arguments.length;
      Alignment argumentsAlignment =this.scribe.createAlignment(
          "allocation",//$NON-NLS-1$
          this.preferences.alignment_for_arguments_in_qualified_allocation_expression,
          argumentLength,
          this.scribe.scanner.currentPosition);
      this.scribe.enterAlignment(argumentsAlignment);
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.formatter.align.Alignment

    }

    this.scribe.printComment();
    ASTNode[] fragments = stringLiteral.literals;
    int fragmentsSize = stringLiteral.counter;
    Alignment binaryExpressionAlignment = this.scribe.createAlignment("binaryExpressionAlignment", this.preferences.alignment_for_binary_expression, Alignment.R_OUTERMOST, fragmentsSize, this.scribe.scanner.currentPosition); //$NON-NLS-1$
    this.scribe.enterAlignment(binaryExpressionAlignment);
    boolean ok = false;
    do {
      try {
        for (int i = 0; i < fragmentsSize - 1; i++) {
View Full Code Here

Examples of org.broad.igv.sam.Alignment

        String chr = "gi|66043271|ref|NC_007005.1|";
        int start = 800;
        int end = 900;
        CloseableIterator<PicardAlignment> iter = reader.query(chr, start, end, false);
        while (iter.hasNext()) {
            Alignment a = iter.next();
            System.out.println(a);
        }
    }
View Full Code Here

Examples of org.broadinstitute.gatk.engine.alignment.Alignment

                //throw new GATKException(String.format("Unable to align read %s to reference; count = %d",read.getReadName(),count));
                System.out.printf("Unable to align read %s to reference; count = %d%n",read.getReadName(),count);
                failures++;
            }

            Alignment foundAlignment = null;
            for(Alignment[] alignmentsOfQuality: alignments) {
                for(Alignment alignment: alignmentsOfQuality) {
                    if( read.getReadNegativeStrandFlag() != alignment.isNegativeStrand() )
                        continue;
                    if( read.getAlignmentStart() != alignment.getAlignmentStart() )
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.