Java Code Examples for com.sun.org.apache.xalan.internal.xsltc.compiler.Variable

Following code examples demonstrate how to use com.sun.org.apache.xalan.internal.xsltc.compiler.Variablefrom java. These examples are extracted from various highly rated open source projects. You can directly use these code snippets or view their entire linked source code. These snippets are extracted to provide contextual information about how to use this class in the real world. These samples also let you understand some good practices on how to use com.sun.org.apache.xalan.internal.xsltc.compiler.Variableand various code implementation of this class.

      if (_variable._ignore) {
        if ((_variable instanceof Variable)) {
          localObject2 = localTopLevelElement.getSymbolTable().lookupVariable(_variable._name);
        } else if ((_variable instanceof Param)) {
          localObject2 = localTopLevelElement.getSymbolTable().lookupParam(_variable._name);
        }
      } 


  
  public void parseContents(Parser paramParser)
  {
    super.parseContents(paramParser);
    SyntaxTreeNode localSyntaxTreeNode = getParent();
    if ((localSyntaxTreeNode instanceof Stylesheet))
    {
      _isLocal = false;
      Variable localVariable = paramParser.getSymbolTable().lookupVariable(_name);
      if (localVariable != null)
      {
        int i = getImportPrecedence();
        int j = localVariable.getImportPrecedence();
        if (i == j)
        {
          String str = _name.toString();
          reportError(this, paramParser, "VARIABLE_REDEF_ERR", str);
        }
        else
        {
          if (j > i)
          {
            _ignore = true;
            copyReferences(localVariable);
            return;
          }
          localVariable.copyReferences(this);
          localVariable.disable();
        }
      }
      ((Stylesheet)localSyntaxTreeNode).addVariable(this);
      paramParser.getSymbolTable().addVariable(this);
    }
    else
    {
      _isLocal = true;
    }
  } 

        {
          if (j > i)
          {
            _ignore = true;
            copyReferences(localVariable);
            return;
          }
          localVariable.copyReferences(this);
          localVariable.disable();
        } 

Advertisement
Javadoc
Parse the contents of the variable
Advertisement