Class ASTIterateExpression

java.lang.Object
de.monticore.ast.ASTCNode
de.monticore.ocl.oclexpressions._ast.ASTIterateExpression
All Implemented Interfaces:
de.monticore.ast.ASTNode, ASTExpression, ASTExpressionsBasisNode, ASTOCLExpressionsNode, Cloneable

public class ASTIterateExpression extends de.monticore.ast.ASTCNode implements ASTExpression, ASTOCLExpressionsNode
  • Field Details

  • Constructor Details

    • ASTIterateExpression

      protected ASTIterateExpression()
  • Method Details

    • deepEquals

      public boolean deepEquals(Object o)
      Specified by:
      deepEquals in interface ASTExpression
      Specified by:
      deepEquals in interface de.monticore.ast.ASTNode
    • deepEquals

      public boolean deepEquals(Object o, boolean forceSameOrder)
      Specified by:
      deepEquals in interface ASTExpression
      Specified by:
      deepEquals in interface de.monticore.ast.ASTNode
    • deepEqualsWithComments

      public boolean deepEqualsWithComments(Object o)
      Specified by:
      deepEqualsWithComments in interface ASTExpression
      Specified by:
      deepEqualsWithComments in interface de.monticore.ast.ASTNode
    • deepEqualsWithComments

      public boolean deepEqualsWithComments(Object o, boolean forceSameOrder)
      Specified by:
      deepEqualsWithComments in interface ASTExpression
      Specified by:
      deepEqualsWithComments in interface de.monticore.ast.ASTNode
    • equalAttributes

      public boolean equalAttributes(Object o)
      Specified by:
      equalAttributes in interface ASTExpression
      Specified by:
      equalAttributes in interface de.monticore.ast.ASTNode
    • equalsWithComments

      public boolean equalsWithComments(Object o)
      Specified by:
      equalsWithComments in interface ASTExpression
      Specified by:
      equalsWithComments in interface de.monticore.ast.ASTNode
    • deepClone

      public ASTIterateExpression deepClone()
      Specified by:
      deepClone in interface ASTExpression
      Specified by:
      deepClone in interface de.monticore.ast.ASTNode
      Specified by:
      deepClone in class de.monticore.ast.ASTCNode
    • deepClone

      public ASTIterateExpression deepClone(ASTIterateExpression result)
    • getIteration

      public ASTInDeclaration getIteration()
    • getInit

      public ASTOCLVariableDeclaration getInit()
    • getName

      public String getName()
    • getValue

      public ASTExpression getValue()
    • setIteration

      public void setIteration(ASTInDeclaration iteration)
    • setInit

      public void setInit(ASTOCLVariableDeclaration init)
    • setName

      public void setName(String name)
    • setValue

      public void setValue(ASTExpression value)
    • accept

      public void accept(OCLExpressionsTraverser visitor)
      Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.
      Specified by:
      accept in interface ASTOCLExpressionsNode
      Parameters:
      visitor - the visitor to dispatch to
    • accept

      public void accept(ExpressionsBasisTraverser visitor)
      Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.
      Specified by:
      accept in interface ASTExpressionsBasisNode
      Parameters:
      visitor - the visitor to dispatch to
    • accept

      public void accept(MCBasicTypesTraverser visitor)
      Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.
      Parameters:
      visitor - the visitor to dispatch to
    • accept

      public void accept(BasicSymbolsTraverser visitor)
      Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.
      Parameters:
      visitor - the visitor to dispatch to
    • accept

      public void accept(MCBasicsTraverser visitor)
      Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.
      Parameters:
      visitor - the visitor to dispatch to
    • accept

      public void accept(MCLiteralsBasisTraverser visitor)
      Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.
      Parameters:
      visitor - the visitor to dispatch to
    • accept

      public void accept(de.monticore.visitor.ITraverser visitor)
      Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.
      Specified by:
      accept in interface de.monticore.ast.ASTNode
      Parameters:
      visitor - the visitor to dispatch to
    • _construct

      protected ASTIterateExpression _construct()
    • getSpannedScope

      public IOCLExpressionsScope getSpannedScope()
    • setSpannedScope

      public void setSpannedScope(IOCLExpressionsScope spannedScope)
    • getEnclosingScope

      public IOCLExpressionsScope getEnclosingScope()
      Specified by:
      getEnclosingScope in interface ASTExpression
      Specified by:
      getEnclosingScope in interface de.monticore.ast.ASTNode
    • setEnclosingScope

      public void setEnclosingScope(IOCLExpressionsScope enclosingScope)
    • setEnclosingScope

      public void setEnclosingScope(IExpressionsBasisScope enclosingScope)
      Specified by:
      setEnclosingScope in interface ASTExpression
    • setEnclosingScope

      public void setEnclosingScope(IMCBasicTypesScope enclosingScope)
    • setEnclosingScope

      public void setEnclosingScope(IBasicSymbolsScope enclosingScope)
    • setEnclosingScope

      public void setEnclosingScope(IMCBasicsScope enclosingScope)
      Specified by:
      setEnclosingScope in interface ASTExpression
    • setEnclosingScope

      public void setEnclosingScope(IMCLiteralsBasisScope enclosingScope)
      Specified by:
      setEnclosingScope in interface ASTExpression
    • getNameSymbol

      public VariableSymbol getNameSymbol()
    • isPresentNameSymbol

      public boolean isPresentNameSymbol()
    • updateNameSymbol

      protected void updateNameSymbol()
    • getNameDefinition

      public ASTVariable getNameDefinition()
    • isPresentNameDefinition

      public boolean isPresentNameDefinition()
    • evaluate

      public de.monticore.interpreter.Value evaluate(IOCLExpressionsInterpreter interpreter)
    • evaluate

      public de.monticore.interpreter.Value evaluate(de.monticore.interpreter.ModelInterpreter interpreter)
      Specified by:
      evaluate in interface de.monticore.ast.ASTNode