@Override public ITypeAnnotationWalker toMethodReturn() { int close = CharOperation.indexOf(')', this.source); if (close != -1) { // optimization, see toMethodParameter. this.pos = close+1; return this; } return ITypeAnnotationWalker.EMPTY_ANNOTATION_WALKER; }
@Override public ITypeAnnotationWalker toMethodReturn() { int close = CharOperation.indexOf(')', this.source); if (close != -1) { // optimization, see toMethodParameter. this.pos = close+1; return this; } return ITypeAnnotationWalker.EMPTY_ANNOTATION_WALKER; }
private static int trapDoorRegexMatchRule(char[] name2, int matchRule) { return CharOperation.indexOf(regexPrefix, name2, false) == 0 ? SearchPattern.R_REGEXP_MATCH : matchRule; } @Override
@Override public ITypeAnnotationWalker toMethodReturn() { int close = CharOperation.indexOf(')', this.source); if (close != -1) { // optimization, see toMethodParameter. this.pos = close+1; return this; } return ITypeAnnotationWalker.EMPTY_ANNOTATION_WALKER; }
@Override public ITypeAnnotationWalker toMethodReturn() { int close = CharOperation.indexOf(')', this.source); if (close != -1) { // optimization, see toMethodParameter. this.pos = close+1; return this; } return ITypeAnnotationWalker.EMPTY_ANNOTATION_WALKER; }
public char[] nextWord() { this.end = CharOperation.indexOf(';', this.signature, this.start); if (this.bracket <= this.start) // already know it if its > start this.bracket = CharOperation.indexOf('<', this.signature, this.start); int dot = CharOperation.indexOf('.', this.signature, this.start); if (this.bracket > this.start && this.bracket < this.end) this.end = this.bracket; if (dot > this.start && dot < this.end) this.end = dot; return CharOperation.subarray(this.signature, this.start, this.start = this.end); // skip word } /** similar to nextWord() but don't stop at '.' */
public char[] nextWord() { this.end = CharOperation.indexOf(';', this.signature, this.start); if (this.bracket <= this.start) // already know it if its > start this.bracket = CharOperation.indexOf('<', this.signature, this.start); int dot = CharOperation.indexOf('.', this.signature, this.start); if (this.bracket > this.start && this.bracket < this.end) this.end = this.bracket; if (dot > this.start && dot < this.end) this.end = dot; return CharOperation.subarray(this.signature, this.start, this.start = this.end); // skip word } /** similar to nextWord() but don't stop at '.' */
public char[] nextWord() { this.end = CharOperation.indexOf(';', this.signature, this.start); if (this.bracket <= this.start) // already know it if its > start this.bracket = CharOperation.indexOf('<', this.signature, this.start); int dot = CharOperation.indexOf('.', this.signature, this.start); if (this.bracket > this.start && this.bracket < this.end) this.end = this.bracket; if (dot > this.start && dot < this.end) this.end = dot; return CharOperation.subarray(this.signature, this.start, this.start = this.end); // skip word } public String toString() {
public char[] nextWord() { this.end = CharOperation.indexOf(';', this.signature, this.start); if (this.bracket <= this.start) // already know it if its > start this.bracket = CharOperation.indexOf('<', this.signature, this.start); int dot = CharOperation.indexOf('.', this.signature, this.start); if (this.bracket > this.start && this.bracket < this.end) this.end = this.bracket; if (dot > this.start && dot < this.end) this.end = dot; return CharOperation.subarray(this.signature, this.start, this.start = this.end); // skip word } /** similar to nextWord() but don't stop at '.' */
public char[] nextWord() { this.end = CharOperation.indexOf(';', this.signature, this.start); if (this.bracket <= this.start) // already know it if its > start this.bracket = CharOperation.indexOf('<', this.signature, this.start); int dot = CharOperation.indexOf('.', this.signature, this.start); if (this.bracket > this.start && this.bracket < this.end) this.end = this.bracket; if (dot > this.start && dot < this.end) this.end = dot; return CharOperation.subarray(this.signature, this.start, this.start = this.end); // skip word } /** similar to nextWord() but don't stop at '.' */
/** similar to nextWord() but don't stop at '.' */ public char[] nextName() { this.end = CharOperation.indexOf(';', this.signature, this.start); if (this.bracket <= this.start) // already know it if its > start this.bracket = CharOperation.indexOf('<', this.signature, this.start); if (this.bracket > this.start && this.bracket < this.end) this.end = this.bracket; return CharOperation.subarray(this.signature, this.start, this.start = this.end); // skip name }
/** similar to nextWord() but don't stop at '.' */ public char[] nextName() { this.end = CharOperation.indexOf(';', this.signature, this.start); if (this.bracket <= this.start) // already know it if its > start this.bracket = CharOperation.indexOf('<', this.signature, this.start); if (this.bracket > this.start && this.bracket < this.end) this.end = this.bracket; return CharOperation.subarray(this.signature, this.start, this.start = this.end); // skip name }
public String getModuleDoc() throws JavaModelException { if (this.content == null) return null; int index = CharOperation.indexOf(JavadocConstants.MODULE_DESCRIPTION_START, this.content, false, 0); if (index == -1) return null; int end = CharOperation.indexOf(JavadocConstants.BOTTOM_NAVBAR, this.content, false, index); if (end == -1) end = this.content.length -1; return String.valueOf(CharOperation.subarray(this.content, index, end)); }
public String getModuleDoc() throws JavaModelException { if (this.content == null) return null; int index = CharOperation.indexOf(JavadocConstants.MODULE_DESCRIPTION_START, this.content, false, 0); if (index == -1) return null; int end = CharOperation.indexOf(JavadocConstants.BOTTOM_NAVBAR, this.content, false, index); if (end == -1) end = this.content.length -1; return String.valueOf(CharOperation.subarray(this.content, index, end)); }
@Override public int getParameterCount() { int count = 0; int start = CharOperation.indexOf('(', this.source) + 1; while (start < this.source.length && this.source[start] != ')') { start = typeEnd(start) + 1; count++; } return count; } }
private char[] erasure(char[] typeName) { int genericStart = CharOperation.indexOf(Signature.C_GENERIC_START, typeName); if (genericStart > -1) typeName = CharOperation.subarray(typeName, 0, genericStart); return typeName; } public void addConstructorDeclaration(
private static char[] trapDoorRegexExtractModuleName(char[] name2) { int index = CharOperation.indexOf(regexPrefix, name2, false); return index >= 0 ? CharOperation.subarray(name2, index + regexPrefix.length, name2.length) : name2; } /*
@Override public int getParameterCount() { int count = 0; int start = CharOperation.indexOf('(', this.source) + 1; while (start < this.source.length && this.source[start] != ')') { start = typeEnd(start) + 1; count++; } return count; } }
@Override public int getParameterCount() { int count = 0; int start = CharOperation.indexOf('(', this.source) + 1; while (start < this.source.length && this.source[start] != ')') { start = typeEnd(start) + 1; count++; } return count; } }
void updateSourceName(int newId) { int hashPos = CharOperation.indexOf('#', this.sourceName); this.varId = newId; this.sourceName = CharOperation.concat( CharOperation.subarray(this.sourceName, 0, hashPos), Integer.toString(this.varId).toCharArray(), '#'); }