MCPcopy Index your code
hub / github.com/apache/tomcat / Function

Class Function

java/org/apache/jasper/compiler/ELNode.java:157–283  ·  view source on GitHub ↗

Represents a function. Currently only include the prefix and function name, but not its arguments.

Source from the content-addressed store, hash-verified

155 * Represents a function. Currently only include the prefix and function name, but not its arguments.
156 */
157 public static class Function extends ELNode {
158
159 private final String prefix;
160 private final String name;
161 private final String originalText;
162 private String uri;
163 private FunctionInfo functionInfo;
164 private String methodName;
165 private String[] parameters;
166
167 /**
168 * Creates a new Function node.
169 *
170 * @param prefix the namespace prefix
171 * @param name the function name
172 * @param originalText the original function text
173 */
174 Function(String prefix, String name, String originalText) {
175 this.prefix = prefix;
176 this.name = name;
177 this.originalText = originalText;
178 }
179
180 @Override
181 public void accept(Visitor v) throws JasperException {
182 v.visit(this);
183 }
184
185 /**
186 * Returns the namespace prefix.
187 *
188 * @return the prefix
189 */
190 public String getPrefix() {
191 return prefix;
192 }
193
194 /**
195 * Returns the function name.
196 *
197 * @return the name
198 */
199 public String getName() {
200 return name;
201 }
202
203 /**
204 * Returns the original function text as it appeared in the source.
205 *
206 * @return the original text
207 */
208 public String getOriginalText() {
209 return originalText;
210 }
211
212 /**
213 * Sets the URI associated with this function's namespace.
214 *

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected