/** * Returns true if there is a tag variable declaration matching the scope. */ protected boolean hasVarDeclaration(int scope) throws Exception { for (int i = 0; _varInfo != null && i < _varInfo.length; i++) { VariableInfo var = _varInfo[i]; if (var != null && var.getScope() == scope) return true; } return false; }
public boolean isNestedVariable(String name) { if (_hasNestedVariable == false) { return false; } VariableInfo variableInfo = findVariableInfo(name); return variableInfo != null && variableInfo.getScope() == VariableInfo.NESTED; }
protected boolean existsNestedVariable( TagExtraInfo tei, Hashtable seed) { VariableInfo[] dummy = tei.getVariableInfo(new DummyTagData(seed)); if (dummy != null) { for (int i = 0; i < dummy.length; i++) { if (dummy[i].getScope() == VariableInfo.NESTED) { return true; } } } return false; }
protected void operateNestedVariables(NestedVariableOperator operator) { if (Boolean.FALSE.equals(_nestedVariableExists) == false) { TLDScriptingVariableInfo variableInfo = getTLDScriptingVariableInfo(); if (variableInfo != null) { AttributeScope pageScope = CycleUtil.getServiceCycle().getPageScope(); boolean firstHit = true; for (Iterator it = variableInfo.variableInfos(); it.hasNext(); ) { VariableInfo info = (VariableInfo)it.next(); if (info.getScope() == VariableInfo.NESTED) { _nestedVariableExists = Boolean.TRUE; operator.operate(pageScope, info, firstHit); firstHit = false; } } } if (_nestedVariableExists == null) { _nestedVariableExists = Boolean.FALSE; } } }
return; if (var.getScope() == scope || var.getScope() == VariableInfo.AT_BEGIN) { if (var.getVarName() == null) throw error(L.l("tag variable expects a name")); && var.getScope() == scope && (var.getScope() == VariableInfo.NESTED && hasScripting() || var.getScope() == VariableInfo.AT_BEGIN) && ! varAlreadyDeclared(var.getVarName())) { validateClass(className, var.getVarName());
return; if (var.getScope() == scope || var.getScope() == VariableInfo.AT_BEGIN) { if (var.getVarName() == null) throw error(L.l("tag variable expects a name")); else if (var.getScope() != VariableInfo.NESTED || hasScripting()) { out.setLocation(_filename, _startLine); out.print(var.getVarName() + " = ");
if (varInfos[i].getScope() == scope) { out.printin(varInfos[i].getVarName()); out.print(" = (");
if (varInfos[i].getScope() == scope) { out.printin(varInfos[i].getVarName()); out.print(" = (");
if (varInfos[i].getScope() == scope) { out.printin(varInfos[i].getVarName()); out.print(" = (");
if (varInfos[i].getScope() == scope) { out.printin(varInfos[i].getVarName()); out.print(" = (");
if (varInfos[i].getScope() == scope) { out.printin(varInfos[i].getVarName()); out.print(" = (");
if (varInfos[i].getScope() == scope) { out.printin(varInfos[i].getVarName()); out.print(" = (");
if (varInfos[i].getScope() == scope) { out.printin(varInfos[i].getVarName()); out.print(" = (");
if (varInfos[i].getScope() == scope) { out.printin(varInfos[i].getVarName()); out.print(" = (");
if (varInfos[i].getScope() == scope) { out.printin(varInfos[i].getVarName()); out.print(" = (");
if (varInfos[i].getScope() == scope) { out.printin(varInfos[i].getVarName()); out.print(" = (");
if (varInfos[i].getScope() == scope) { out.printin(varInfos[i].getVarName()); out.print(" = (");
if (varInfos[i].getScope() == scope) { out.printin(varInfos[i].getVarName()); out.print(" = (");
if (varInfos[i].getScope() == scope) { out.printin(varInfos[i].getVarName()); out.print(" = (");