MCPcopy Index your code
hub / github.com/OpenTSDB/opentsdb / readFuncName

Method readFuncName

src/query/expression/ExpressionReader.java:99–108  ·  view source on GitHub ↗

@return the name of the function

()

Source from the content-addressed store, hash-verified

97
98 /** @return the name of the function */
99 public String readFuncName() {
100 // in case we get something like " function(foo)" consume a bit
101 skipWhitespaces();
102 StringBuilder builder = new StringBuilder();
103 while (peek() != '(' && !Character.isWhitespace(peek())) {
104 builder.append(next());
105 }
106 skipWhitespaces(); // increment over whitespace after
107 return builder.toString();
108 }
109
110 /** @return Whether or not the index is at the end of the character array */
111 public boolean isEOF() {

Callers 4

ctorEmptyStringMethod · 0.95
readFuncNameMethod · 0.95
readNextParameterMethod · 0.95
parseMethod · 0.95

Calls 5

skipWhitespacesMethod · 0.95
peekMethod · 0.95
nextMethod · 0.95
appendMethod · 0.45
toStringMethod · 0.45

Tested by 3

ctorEmptyStringMethod · 0.76
readFuncNameMethod · 0.76
readNextParameterMethod · 0.76