Class ContentVarDeclExpression


  • public class ContentVarDeclExpression
    extends InContentExpression
    Creates a content expression/statement that declares and initializes a variable.
    Author:
    Holger Eichelberger
    • Constructor Detail

      • ContentVarDeclExpression

        public ContentVarDeclExpression​(VariableDeclaration var)
        Creates an instance.
        Parameters:
        var - the variable
    • Method Detail

      • getVariable

        public VariableDeclaration getVariable()
        Returns the declared variable.
        Returns:
        the variable
      • accept

        public java.lang.Object accept​(IExpressionVisitor visitor)
                                throws VilException
        Description copied from class: Expression
        Visits the expression.
        Specified by:
        accept in class Expression
        Parameters:
        visitor - the visitor
        Returns:
        the result of visiting this expression (may be null)
        Throws:
        VilException - in case that visiting fails (e.g., execution)