/*
* reserved comment block
* DO NOT REMOVE OR ALTER!
*/
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* $Id: AttributeValueTemplate.java,v 1.2.4.1 2005/09/01 10:26:57 pvedula Exp $
*/
/**
* @author Jacek Ambroziak
* @author Santiago Pericas-Geertsen
*/
{
try {
}
catch (NoSuchElementException e) {
}
}
/**
* Two-pass parsing of ATVs. In the first pass, double curly braces are
* replaced by one, and expressions are delimited using DELIMITER. The
* second pass splits up the resulting buffer into literal and non-literal
* expressions. Errors are reported during the first pass.
*/
/*
* First pass: replace double curly braces and delimit expressions
* Simple automaton to parse ATVs, delimit expressions and report
* errors.
*/
while (tokenizer.hasMoreTokens()) {
// Use lookahead if available
t = lookahead;
}
else {
}
if (t.length() == 1) {
switch (t.charAt(0)) {
case '{':
switch (state) {
case OUT_EXPR:
}
else {
}
break;
case IN_EXPR:
case IN_EXPR_SQUOTES:
case IN_EXPR_DQUOTES:
break;
}
break;
case '}':
switch (state) {
case OUT_EXPR:
}
else {
}
break;
case IN_EXPR:
break;
case IN_EXPR_SQUOTES:
case IN_EXPR_DQUOTES:
break;
}
break;
case '\'':
switch (state) {
case IN_EXPR:
break;
case IN_EXPR_SQUOTES:
break;
case OUT_EXPR:
case IN_EXPR_DQUOTES:
break;
}
break;
case '\"':
switch (state) {
case IN_EXPR:
break;
case IN_EXPR_DQUOTES:
break;
case OUT_EXPR:
case IN_EXPR_SQUOTES:
break;
}
break;
default:
break;
}
}
else {
}
}
// Must be in OUT_EXPR at the end of parsing
}
/*
* Second pass: split up buffer into literal and non-literal expressions.
*/
while (tokenizer.hasMoreTokens()) {
}
else {
addElement(new LiteralExpr(t));
}
}
}
for (int i = 0; i < n; i++) {
}
}
}
final int count = elementCount();
for (int i = 0; i < count; i++) {
if (i < count - 1)
}
}
if (elementCount() == 1) {
}
else {
"<init>", "()V");
final Instruction append =
"append",
+ STRING_BUFFER_SIG));
"toString",
"()"+STRING_SIG);
// StringBuffer is on the stack
while (elements.hasMoreElements()) {
}
}
}
}