1 11 package org.eclipse.jdt.internal.codeassist; 12 13 14 18 public class InternalCompletionContext { 19 protected char[][] expectedTypesSignatures; 20 protected char[][] expectedTypesKeys; 21 protected int javadoc; 22 23 protected int offset = -1; 24 protected int tokenStart = -1; 25 protected int tokenEnd = -1; 26 protected char[] token = null; 27 protected int tokenKind; 28 29 protected void setExpectedTypesSignatures(char[][] expectedTypesSignatures) { 30 this.expectedTypesSignatures = expectedTypesSignatures; 31 } 32 33 protected void setExpectedTypesKeys(char[][] expectedTypesKeys) { 34 this.expectedTypesKeys = expectedTypesKeys; 35 } 36 37 protected void setJavadoc(int javadoc) { 38 this.javadoc = javadoc; 39 } 40 41 protected void setOffset(int offset) { 42 this.offset = offset; 43 } 44 45 protected void setTokenRange(int start, int end) { 46 this.setTokenRange(start, end, -1); 47 } 48 protected void setTokenRange(int start, int end, int endOfEmptyToken) { 49 this.tokenStart = start; 50 this.tokenEnd = endOfEmptyToken > end ? endOfEmptyToken : end; 51 52 if(this.tokenEnd == -1) { 56 this.tokenEnd = 0; 57 } 58 } 59 60 protected void setToken(char[] token) { 61 this.token = token; 62 } 63 64 protected void setTokenKind(int tokenKind) { 65 this.tokenKind = tokenKind; 66 } 67 } 68 | Popular Tags |