public CompletionOnKeywordModuleInfo(char[] token, long pos, char[][] possibleKeywords) { super(new ImportReference(new char[][] {token}, new long[] {pos}, false, 0), null); // dummy this.token = token; this.possibleKeywords = possibleKeywords; this.sourceStart = (int) (pos>>>32) ; this.sourceEnd = (int) (pos & 0x00000000FFFFFFFFL); }
public CompletionOnKeywordModuleInfo(char[] token, long pos, char[][] possibleKeywords) { super(new ImportReference(new char[][] {token}, new long[] {pos}, false, 0), null); // dummy this.token = token; this.possibleKeywords = possibleKeywords; this.sourceStart = (int) (pos>>>32) ; this.sourceEnd = (int) (pos & 0x00000000FFFFFFFFL); }
protected ImportReference newImportReference(char[][] tokens, long[] positions, boolean onDemand, int mod) { return new ImportReference(tokens, positions, onDemand, mod); } protected QualifiedNameReference newQualifiedNameReference(char[][] tokens, long[] positions, int sourceStart, int sourceEnd) {
protected ImportReference newImportReference(char[][] tokens, long[] positions, boolean onDemand, int mod) { return new ImportReference(tokens, positions, onDemand, mod); } protected QualifiedNameReference newQualifiedNameReference(char[][] tokens, long[] positions, int sourceStart, int sourceEnd) {
protected ImportReference newImportReference(char[][] tokens, long[] positions, boolean onDemand, int mod) { return new ImportReference(tokens, positions, onDemand, mod); } protected QualifiedNameReference newQualifiedNameReference(char[][] tokens, long[] positions, int sourceStart, int sourceEnd) {
protected ImportReference newImportReference(char[][] tokens, long[] positions, boolean onDemand, int mod) { return new ImportReference(tokens, positions, onDemand, mod); } protected QualifiedNameReference newQualifiedNameReference(char[][] tokens, long[] positions, int sourceStart, int sourceEnd) {
protected ImportReference newImportReference(char[][] tokens, long[] positions, boolean onDemand, int mod) { return new ImportReference(tokens, positions, onDemand, mod); } protected QualifiedNameReference newQualifiedNameReference(char[][] tokens, long[] positions, int sourceStart, int sourceEnd) {
protected ImportReference newImportReference(char[][] tokens, long[] positions, boolean onDemand, int mod) { return new ImportReference(tokens, positions, onDemand, mod); } protected QualifiedNameReference newQualifiedNameReference(char[][] tokens, long[] positions, int sourceStart, int sourceEnd) {
protected ImportReference newImportReference(char[][] tokens, long[] positions, boolean onDemand, int mod) { return new ImportReference(tokens, positions, onDemand, mod); } protected QualifiedNameReference newQualifiedNameReference(char[][] tokens, long[] positions, int sourceStart, int sourceEnd) {
protected ImportReference createImportReference( String[] importName, int start, int end, boolean onDemand, int modifiers) { int length = importName.length; long[] positions = new long[length]; long position = ((long) start << 32) + end; char[][] qImportName = new char[length][]; for (int i = 0; i < length; i++) { qImportName[i] = importName[i].toCharArray(); positions[i] = position; // dummy positions } return new ImportReference( qImportName, positions, onDemand, modifiers); }
protected ImportReference createImportReference( String[] importName, int start, int end, boolean onDemand, int modifiers) { int length = importName.length; long[] positions = new long[length]; long position = ((long) start << 32) + end; char[][] qImportName = new char[length][]; for (int i = 0; i < length; i++) { qImportName[i] = importName[i].toCharArray(); positions[i] = position; // dummy positions } return new ImportReference( qImportName, positions, onDemand, modifiers); }
protected ImportReference createImportReference( String[] importName, int start, int end, boolean onDemand, int modifiers) { int length = importName.length; long[] positions = new long[length]; long position = ((long) start << 32) + end; char[][] qImportName = new char[length][]; for (int i = 0; i < length; i++) { qImportName[i] = importName[i].toCharArray(); positions[i] = position; // dummy positions } return new ImportReference( qImportName, positions, onDemand, modifiers); }
protected void consumeSinglePkgName() { ImportReference impt; int length; char[][] tokens = new char[length = this.identifierLengthStack[this.identifierLengthPtr--]][]; this.identifierPtr -= length; long[] positions = new long[length]; System.arraycopy(this.identifierStack, this.identifierPtr + 1, tokens, 0, length); System.arraycopy(this.identifierPositionStack, this.identifierPtr + 1, positions, 0, length); pushOnAstStack(impt = new ImportReference(tokens, positions, false, ClassFileConstants.AccDefault)); // recovery if (this.currentElement instanceof RecoveredModule){ this.lastCheckPoint = impt.sourceEnd + 1; } } protected void consumeUsesStatement() {
protected void consumeSinglePkgName() { ImportReference impt; int length; char[][] tokens = new char[length = this.identifierLengthStack[this.identifierLengthPtr--]][]; this.identifierPtr -= length; long[] positions = new long[length]; System.arraycopy(this.identifierStack, this.identifierPtr + 1, tokens, 0, length); System.arraycopy(this.identifierPositionStack, this.identifierPtr + 1, positions, 0, length); pushOnAstStack(impt = new ImportReference(tokens, positions, false, ClassFileConstants.AccDefault)); // recovery if (this.currentElement instanceof RecoveredModule){ this.lastCheckPoint = impt.sourceEnd + 1; } } protected void consumeUsesStatement() {
@Override public boolean visitPackageDeclaration(lombok.ast.PackageDeclaration node) { long[] pos = partsToPosArray(node.rawParts()); ImportReference pkg = new ImportReference(chain(node.astParts()), pos, true, ClassFileConstants.AccDefault); pkg.annotations = toArray(Annotation.class, node.astAnnotations()); pkg.declarationSourceStart = jstart(node); pkg.declarationSourceEnd = pkg.declarationEnd = end(node); return set(node, pkg); }
@Override public boolean visitPackageDeclaration(lombok.ast.PackageDeclaration node) { long[] pos = partsToPosArray(node.rawParts()); ImportReference pkg = new ImportReference(chain(node.astParts()), pos, true, ClassFileConstants.AccDefault); pkg.annotations = toArray(Annotation.class, node.astAnnotations()); pkg.declarationSourceStart = jstart(node); pkg.declarationSourceEnd = pkg.declarationEnd = end(node); return set(node, pkg); }
@Override public boolean visitPackageDeclaration(lombok.ast.PackageDeclaration node) { long[] pos = partsToPosArray(node.rawParts()); ImportReference pkg = new ImportReference(chain(node.astParts()), pos, true, ClassFileConstants.AccDefault); pkg.annotations = toArray(Annotation.class, node.astAnnotations()); pkg.declarationSourceStart = jstart(node); pkg.declarationSourceEnd = pkg.declarationEnd = end(node); return set(node, pkg); }
@Override public boolean visitImportDeclaration(lombok.ast.ImportDeclaration node) { int staticFlag = node.astStaticImport() ? ClassFileConstants.AccStatic : ClassFileConstants.AccDefault; long[] pos = partsToPosArray(node.rawParts()); ImportReference imp = new ImportReference(chain(node.astParts()), pos, node.astStarImport(), staticFlag); imp.declarationSourceStart = start(node); imp.declarationSourceEnd = imp.declarationEnd = end(node); return set(node, imp); }
@Override public boolean visitImportDeclaration(lombok.ast.ImportDeclaration node) { int staticFlag = node.astStaticImport() ? ClassFileConstants.AccStatic : ClassFileConstants.AccDefault; long[] pos = partsToPosArray(node.rawParts()); ImportReference imp = new ImportReference(chain(node.astParts()), pos, node.astStarImport(), staticFlag); imp.declarationSourceStart = start(node); imp.declarationSourceEnd = imp.declarationEnd = end(node); return set(node, imp); }
@Override public boolean visitImportDeclaration(lombok.ast.ImportDeclaration node) { int staticFlag = node.astStaticImport() ? ClassFileConstants.AccStatic : ClassFileConstants.AccDefault; long[] pos = partsToPosArray(node.rawParts()); ImportReference imp = new ImportReference(chain(node.astParts()), pos, node.astStarImport(), staticFlag); imp.declarationSourceStart = start(node); imp.declarationSourceEnd = imp.declarationEnd = end(node); return set(node, imp); }