1 11 package org.eclipse.jdt.internal.formatter; 12 13 18 public class Location { 19 20 public int inputOffset; 21 public int outputLine; 22 public int outputColumn; 23 public int outputIndentationLevel; 24 public boolean needSpace; 25 public boolean pendingSpace; 26 public int nlsTagCounter; 27 public int lastLocalDeclarationSourceStart; 28 public int numberOfIndentations; 29 30 public int lastNumberOfNewLines; 32 33 int editsIndex; 35 OptimizedReplaceEdit textEdit; 36 37 public Location(Scribe scribe, int sourceRestart){ 38 update(scribe, sourceRestart); 39 } 40 41 public void update(Scribe scribe, int sourceRestart){ 42 this.outputColumn = scribe.column; 43 this.outputLine = scribe.line; 44 this.inputOffset = sourceRestart; 45 this.outputIndentationLevel = scribe.indentationLevel; 46 this.lastNumberOfNewLines = scribe.lastNumberOfNewLines; 47 this.needSpace = scribe.needSpace; 48 this.pendingSpace = scribe.pendingSpace; 49 this.editsIndex = scribe.editsIndex; 50 this.nlsTagCounter = scribe.nlsTagCounter; 51 this.numberOfIndentations = scribe.numberOfIndentations; 52 textEdit = scribe.getLastEdit(); 53 } 54 } 55 | Popular Tags |