Java Code Examples for org.apache.jasper.Constants#TEMP_VARIABLE_NAME_PREFIX

The following examples show how to use org.apache.jasper.Constants#TEMP_VARIABLE_NAME_PREFIX . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Node.java    From Tomcat8-Source-Read with MIT License 5 votes vote down vote up
/**
 * Generates a new temporary variable name.
 *
 * @return The name to use for the temporary variable
 */
public String nextTemporaryVariableName() {
    if (parentRoot == null) {
        return Constants.TEMP_VARIABLE_NAME_PREFIX + (tempSequenceNumber++);
    } else {
        return parentRoot.nextTemporaryVariableName();
    }

}
 
Example 2
Source File: Node.java    From Tomcat7.0.67 with Apache License 2.0 5 votes vote down vote up
/**
 * Generates a new temporary variable name.
 */
public String nextTemporaryVariableName() {
    if (parentRoot == null) {
        return Constants.TEMP_VARIABLE_NAME_PREFIX + (tempSequenceNumber++);
    } else {
        return parentRoot.nextTemporaryVariableName();
    }
    
}
 
Example 3
Source File: Node.java    From tomcatsrc with Apache License 2.0 5 votes vote down vote up
/**
 * Generates a new temporary variable name.
 */
public String nextTemporaryVariableName() {
    if (parentRoot == null) {
        return Constants.TEMP_VARIABLE_NAME_PREFIX + (tempSequenceNumber++);
    } else {
        return parentRoot.nextTemporaryVariableName();
    }
    
}
 
Example 4
Source File: JspUtil.java    From packagedrone with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * Generates a new temporary variable name.
 * (not thread-safe)
 */
public static String nextTemporaryVariableName() {
    return Constants.TEMP_VARIABLE_NAME_PREFIX + (tempSequenceNumber++);
}