本文整理汇总了Java中org.apache.jasper.compiler.ELNode.Text类的典型用法代码示例。如果您正苦于以下问题:Java Text类的具体用法?Java Text怎么用?Java Text使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Text类属于org.apache.jasper.compiler.ELNode包,在下文中一共展示了Text类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: parse
import org.apache.jasper.compiler.ELNode.Text; //导入依赖的package包/类
/**
* Parse an EL expression
*
* @param expression
* The input expression string of the form Char* ('${' Char*
* '}')* Char*
* @param isDeferredSyntaxAllowedAsLiteral
* Are deferred expressions treated as literals?
* @return Parsed EL expression in ELNode.Nodes
*/
public static ELNode.Nodes parse(String expression,
boolean isDeferredSyntaxAllowedAsLiteral) {
ELParser parser = new ELParser(expression,
isDeferredSyntaxAllowedAsLiteral);
while (parser.hasNextChar()) {
String text = parser.skipUntilEL();
if (text.length() > 0) {
parser.expr.add(new ELNode.Text(text));
}
ELNode.Nodes elexpr = parser.parseEL();
if (!elexpr.isEmpty()) {
parser.expr.add(new ELNode.Root(elexpr, parser.type));
}
}
return parser.expr;
}
示例2: parse
import org.apache.jasper.compiler.ELNode.Text; //导入依赖的package包/类
/**
* Parse an EL expression
*
* @param expression
* The input expression string of the form Char* ('${' Char*
* '}')* Char*
* @param isDeferredSyntaxAllowedAsLiteral
* Are deferred expressions treated as literals?
* @return Parsed EL expression in ELNode.Nodes
*/
public static ELNode.Nodes parse(String expression,
boolean isDeferredSyntaxAllowedAsLiteral) {
ELParser parser = new ELParser(expression,
isDeferredSyntaxAllowedAsLiteral);
while (parser.hasNextChar()) {
String text = parser.skipUntilEL();
if (text.length() > 0) {
parser.expr.add(new ELNode.Text(text));
}
ELNode.Nodes elexpr = parser.parseEL();
if (!elexpr.isEmpty()) {
parser.expr.add(new ELNode.Root(elexpr, parser.type));
}
}
return parser.expr;
}
示例3: parse
import org.apache.jasper.compiler.ELNode.Text; //导入依赖的package包/类
/**
* Parse an EL expression
*
* @param expression
* The input expression string of the form Char* ('${' Char*
* '}')* Char*
* @param isDeferredSyntaxAllowedAsLiteral
* Are deferred expressions treated as literals?
* @return Parsed EL expression in ELNode.Nodes
*/
public static ELNode.Nodes parse(String expression, boolean isDeferredSyntaxAllowedAsLiteral) {
ELParser parser = new ELParser(expression, isDeferredSyntaxAllowedAsLiteral);
while (parser.hasNextChar()) {
String text = parser.skipUntilEL();
if (text.length() > 0) {
parser.expr.add(new ELNode.Text(text));
}
ELNode.Nodes elexpr = parser.parseEL();
if (!elexpr.isEmpty()) {
parser.expr.add(new ELNode.Root(elexpr, parser.type));
}
}
return parser.expr;
}
示例4: visit
import org.apache.jasper.compiler.ELNode.Text; //导入依赖的package包/类
@Override
public void visit(Text n) throws JasperException {
output.append(ELParser.escapeLiteralExpression(
xmlEscape(n.getText()),
isDeferredSyntaxAllowedAsLiteral));
}
示例5: visit
import org.apache.jasper.compiler.ELNode.Text; //导入依赖的package包/类
@Override
public void visit(Text n) throws JasperException {
output.append(escapeLiteralExpression(n.getText(),isDeferredSyntaxAllowedAsLiteral));
}
示例6: visit
import org.apache.jasper.compiler.ELNode.Text; //导入依赖的package包/类
@Override
public void visit(Text n) throws JasperException {
output.append(
ELParser.escapeLiteralExpression(xmlEscape(n.getText()), isDeferredSyntaxAllowedAsLiteral));
}
示例7: visit
import org.apache.jasper.compiler.ELNode.Text; //导入依赖的package包/类
@Override
public void visit(Text n) throws JasperException {
output.append(escapeLiteralExpression(n.getText(), isDeferredSyntaxAllowedAsLiteral));
}
示例8: visit
import org.apache.jasper.compiler.ELNode.Text; //导入依赖的package包/类
@Override
public void visit(Text n) throws JasperException {
output.append(xmlEscape(n.getText()));
}
示例9: visit
import org.apache.jasper.compiler.ELNode.Text; //导入依赖的package包/类
@Override
public void visit(Text n) throws JasperException {
output.append(n.getText());
}