public ITypeAnnotationWalker forMethod(char[] selector, char[] signature, LookupEnvironment environment) { Map<String, String> sources = this.methodAnnotationSources; if (sources != null) { String source = sources.get(String.valueOf(CharOperation.concat(selector, signature))); if (source != null) return new MethodAnnotationWalker(source.toCharArray(), 0, environment); } return ITypeAnnotationWalker.EMPTY_ANNOTATION_WALKER; }
public ITypeAnnotationWalker forMethod(char[] selector, char[] signature, LookupEnvironment environment) { Map<String, String> sources = this.methodAnnotationSources; if (sources != null) { String source = sources.get(String.valueOf(CharOperation.concat(selector, signature))); if (source != null) return new MethodAnnotationWalker(source.toCharArray(), 0, environment); } return ITypeAnnotationWalker.EMPTY_ANNOTATION_WALKER; }
public ITypeAnnotationWalker forMethod(char[] selector, char[] signature, LookupEnvironment environment) { Map<String, String> sources = this.methodAnnotationSources; if (sources != null) { String source = sources.get(String.valueOf(CharOperation.concat(selector, signature))); if (source != null) return new MethodAnnotationWalker(source.toCharArray(), 0, environment); } return ITypeAnnotationWalker.EMPTY_ANNOTATION_WALKER; }
@Override public ITypeAnnotationWalker toTypeArgument(int rank) { if (rank == 0) { int start = CharOperation.indexOf('<', this.source, this.pos) + 1; this.prevTypeArgStart = start; return new MethodAnnotationWalker(this.source, start, this.environment); } int next = this.prevTypeArgStart; switch (this.source[next]) { case '*': break; case '-': case '+': next++; //$FALL-THROUGH$ default: next = wrapperWithStart(next).computeEnd(); } next++; this.prevTypeArgStart = next; return new MethodAnnotationWalker(this.source, next, this.environment); }
@Override public ITypeAnnotationWalker toTypeArgument(int rank) { if (rank == 0) { int start = CharOperation.indexOf('<', this.source, this.pos) + 1; this.prevTypeArgStart = start; return new MethodAnnotationWalker(this.source, start, this.environment); } int next = this.prevTypeArgStart; switch (this.source[next]) { case '*': next = skipNullAnnotation(next+1); break; case '-': case '+': next = skipNullAnnotation(next+1); //$FALL-THROUGH$ default: next = wrapperWithStart(next).computeEnd(); next++; } this.prevTypeArgStart = next; return new MethodAnnotationWalker(this.source, next, this.environment); }
@Override public ITypeAnnotationWalker toTypeArgument(int rank) { if (rank == 0) { int start = CharOperation.indexOf('<', this.source, this.pos) + 1; this.prevTypeArgStart = start; return new MethodAnnotationWalker(this.source, start, this.environment); } int next = this.prevTypeArgStart; switch (this.source[next]) { case '*': next = skipNullAnnotation(next+1); break; case '-': case '+': next = skipNullAnnotation(next+1); //$FALL-THROUGH$ default: next = wrapperWithStart(next).computeEnd(); next++; } this.prevTypeArgStart = next; return new MethodAnnotationWalker(this.source, next, this.environment); }
@Override public ITypeAnnotationWalker toTypeArgument(int rank) { if (rank == 0) { int start = CharOperation.indexOf('<', this.source, this.pos) + 1; this.prevTypeArgStart = start; return new MethodAnnotationWalker(this.source, start, this.environment); } int next = this.prevTypeArgStart; switch (this.source[next]) { case '*': break; case '-': case '+': next++; //$FALL-THROUGH$ default: next = wrapperWithStart(next).computeEnd(); } next++; this.prevTypeArgStart = next; return new MethodAnnotationWalker(this.source, next, this.environment); }
@Override public ITypeAnnotationWalker toTypeArgument(int rank) { if (rank == 0) { int start = CharOperation.indexOf('<', this.source, this.pos) + 1; this.prevTypeArgStart = start; return new MethodAnnotationWalker(this.source, start, this.environment); } int next = this.prevTypeArgStart; switch (this.source[next]) { case '*': break; case '-': case '+': next++; //$FALL-THROUGH$ default: next = wrapperWithStart(next).computeEnd(); } next++; this.prevTypeArgStart = next; return new MethodAnnotationWalker(this.source, next, this.environment); }
public ITypeAnnotationWalker forMethod(char[] selector, char[] signature, LookupEnvironment environment) { Map<String, String> sources = this.methodAnnotationSources; if (sources != null) { String source = sources.get(String.valueOf(CharOperation.concat(selector, signature))); if (source != null) return new MethodAnnotationWalker(source.toCharArray(), 0, environment); } return ITypeAnnotationWalker.EMPTY_ANNOTATION_WALKER; }
@Override public ITypeAnnotationWalker toNextArrayDimension() { if (this.source[this.pos] == '[') { int newPos = this.pos+1; switch (this.source[newPos]) { case NULLABLE: case NONNULL: newPos++; break; } return new MethodAnnotationWalker(this.source, newPos, this.environment); } return ITypeAnnotationWalker.EMPTY_ANNOTATION_WALKER; }
@Override public ITypeAnnotationWalker toWildcardBound() { switch (this.source[this.pos]) { case '-': case '+': return new MethodAnnotationWalker(this.source, this.pos+1, this.environment); default: // includes unbounded '*' return ITypeAnnotationWalker.EMPTY_ANNOTATION_WALKER; } }
@Override public ITypeAnnotationWalker toNextArrayDimension() { if (this.source[this.pos] == '[') { int newPos = skipNullAnnotation(this.pos+1); return new MethodAnnotationWalker(this.source, newPos, this.environment); } return ITypeAnnotationWalker.EMPTY_ANNOTATION_WALKER; }
public ITypeAnnotationWalker forMethod(char[] selector, char[] signature, LookupEnvironment environment) { Map<String, String> sources = this.methodAnnotationSources; if (sources != null) { String source = sources.get(String.valueOf(CharOperation.concat(selector, signature))); if (source != null) return new MethodAnnotationWalker(source.toCharArray(), 0, environment); } return ITypeAnnotationWalker.EMPTY_ANNOTATION_WALKER; }
@Override public ITypeAnnotationWalker toNextArrayDimension() { if (this.source[this.pos] == '[') { int newPos = this.pos+1; switch (this.source[newPos]) { case NULLABLE: case NONNULL: newPos++; break; } return new MethodAnnotationWalker(this.source, newPos, this.environment); } return ITypeAnnotationWalker.EMPTY_ANNOTATION_WALKER; }
@Override public ITypeAnnotationWalker toWildcardBound() { switch (this.source[this.pos]) { case '-': case '+': return new MethodAnnotationWalker(this.source, this.pos+1, this.environment); default: // includes unbounded '*' return ITypeAnnotationWalker.EMPTY_ANNOTATION_WALKER; } }
@Override public ITypeAnnotationWalker toNextArrayDimension() { if (this.source[this.pos] == '[') { int newPos = this.pos+1; switch (this.source[newPos]) { case NULLABLE: case NONNULL: newPos++; break; } return new MethodAnnotationWalker(this.source, newPos, this.environment); } return ITypeAnnotationWalker.EMPTY_ANNOTATION_WALKER; }
@Override public ITypeAnnotationWalker toWildcardBound() { switch (this.source[this.pos]) { case '-': case '+': int newPos = skipNullAnnotation(this.pos+1); return new MethodAnnotationWalker(this.source, newPos, this.environment); default: // includes unbounded '*' return ITypeAnnotationWalker.EMPTY_ANNOTATION_WALKER; } }
@Override public ITypeAnnotationWalker toWildcardBound() { switch (this.source[this.pos]) { case '-': case '+': return new MethodAnnotationWalker(this.source, this.pos+1, this.environment); default: // includes unbounded '*' return ITypeAnnotationWalker.EMPTY_ANNOTATION_WALKER; } }
@Override public ITypeAnnotationWalker toNextArrayDimension() { if (this.source[this.pos] == '[') { int newPos = skipNullAnnotation(this.pos+1); return new MethodAnnotationWalker(this.source, newPos, this.environment); } return ITypeAnnotationWalker.EMPTY_ANNOTATION_WALKER; }
@Override public ITypeAnnotationWalker toWildcardBound() { switch (this.source[this.pos]) { case '-': case '+': int newPos = skipNullAnnotation(this.pos+1); return new MethodAnnotationWalker(this.source, newPos, this.environment); default: // includes unbounded '*' return ITypeAnnotationWalker.EMPTY_ANNOTATION_WALKER; } }