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

Method getTextAttribute

java/org/apache/jasper/compiler/Node.java:266–279  ·  view source on GitHub ↗

Get the attribute that is non request time expression, either from the attribute of the node, or from a jsp:attribute @param name The name of the attribute @return The attribute value

(String name)

Source from the content-addressed store, hash-verified

264 * @return The attribute value
265 */
266 public String getTextAttribute(String name) {
267
268 String attr = getAttributeValue(name);
269 if (attr != null) {
270 return attr;
271 }
272
273 NamedAttribute namedAttribute = getNamedAttributeNode(name);
274 if (namedAttribute == null) {
275 return null;
276 }
277
278 return namedAttribute.getText();
279 }
280
281 /**
282 * Searches all sub-nodes of this node for jsp:attribute standard actions with the given name.

Callers 3

visitMethod · 0.80
visitMethod · 0.80
visitMethod · 0.80

Calls 3

getAttributeValueMethod · 0.95
getNamedAttributeNodeMethod · 0.95
getTextMethod · 0.95

Tested by

no test coverage detected