org.openarchitectureware.xpand2.ast
Class ExpandStatement

java.lang.Object
  extended by org.openarchitectureware.expression.ast.SyntaxElement
      extended by org.openarchitectureware.xpand2.ast.Statement
          extended by org.openarchitectureware.xpand2.ast.ExpandStatement
All Implemented Interfaces:
ISyntaxElement, XpandAnalyzable, XpandEvaluatable

public class ExpandStatement
extends Statement

*

Author:
Sven Efftinge (http://www.efftinge.de) *

Field Summary
 
Fields inherited from class org.openarchitectureware.xpand2.ast.Statement
containingDefinition
 
Fields inherited from class org.openarchitectureware.expression.ast.SyntaxElement
end, line, start
 
Constructor Summary
ExpandStatement(Identifier definition, Expression target, Expression separator, Expression[] parameters, boolean foreach)
           
 
Method Summary
 void analyzeInternal(XpandExecutionContext ctx, java.util.Set<AnalysationIssue> issues)
           
 void evaluateInternal(XpandExecutionContext ctx)
           
 Identifier getDefinition()
           
 java.lang.String getNameString(ExecutionContext context)
           
 Expression[] getParameters()
           
 java.util.List<Expression> getParametersAsList()
           
 Expression getSeparator()
           
 Expression getTarget()
           
 boolean isForeach()
           
 java.lang.String toString()
           
 
Methods inherited from class org.openarchitectureware.xpand2.ast.Statement
analyze, evaluate, getContainingDefinition, setContainingDefinition
 
Methods inherited from class org.openarchitectureware.expression.ast.SyntaxElement
accept, getEnd, getFileName, getLine, getStart, setEnd, setFileName, setLine, setStart
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExpandStatement

public ExpandStatement(Identifier definition,
                       Expression target,
                       Expression separator,
                       Expression[] parameters,
                       boolean foreach)
Method Detail

getDefinition

public Identifier getDefinition()

isForeach

public boolean isForeach()

getParameters

public Expression[] getParameters()

getParametersAsList

public java.util.List<Expression> getParametersAsList()

getSeparator

public Expression getSeparator()

getTarget

public Expression getTarget()

analyzeInternal

public void analyzeInternal(XpandExecutionContext ctx,
                            java.util.Set<AnalysationIssue> issues)
Specified by:
analyzeInternal in class Statement

evaluateInternal

public void evaluateInternal(XpandExecutionContext ctx)
Specified by:
evaluateInternal in class Statement

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getNameString

public java.lang.String getNameString(ExecutionContext context)
Specified by:
getNameString in interface ISyntaxElement
Overrides:
getNameString in class SyntaxElement