Class ASTOCLVariableDeclaration

java.lang.Object
de.monticore.ast.ASTCNode
de.monticore.ocl.oclexpressions._ast.ASTOCLVariableDeclaration
All Implemented Interfaces:
de.monticore.ast.ASTNode, ASTOCLExpressionsNode, ASTBasicSymbolsNode, ASTVariable, Cloneable

public class ASTOCLVariableDeclaration extends de.monticore.ast.ASTCNode implements ASTVariable, ASTOCLExpressionsNode
  • Field Details

  • Constructor Details

    • ASTOCLVariableDeclaration

      protected ASTOCLVariableDeclaration()
  • Method Details

    • deepEquals

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

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

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

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

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

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

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

    • getMCType

      public ASTMCType getMCType()
    • isPresentMCType

      public boolean isPresentMCType()
    • getName

      public String getName()
      Specified by:
      getName in interface ASTVariable
    • getExpression

      public ASTExpression getExpression()
    • isPresentExpression

      public boolean isPresentExpression()
    • containsDim

      public boolean containsDim(Object element)
    • containsAllDim

      public boolean containsAllDim(Collection<?> collection)
    • isEmptyDim

      public boolean isEmptyDim()
    • iteratorDim

      public Iterator<String> iteratorDim()
    • sizeDim

      public int sizeDim()
    • toArrayDim

      public String[] toArrayDim(String[] array)
    • toArrayDim

      public Object[] toArrayDim()
    • spliteratorDim

      public Spliterator<String> spliteratorDim()
    • streamDim

      public Stream<String> streamDim()
    • parallelStreamDim

      public Stream<String> parallelStreamDim()
    • getDim

      public String getDim(int index)
    • indexOfDim

      public int indexOfDim(Object element)
    • lastIndexOfDim

      public int lastIndexOfDim(Object element)
    • equalsDim

      public boolean equalsDim(Object o)
    • hashCodeDim

      public int hashCodeDim()
    • listIteratorDim

      public ListIterator<String> listIteratorDim()
    • listIteratorDim

      public ListIterator<String> listIteratorDim(int index)
    • subListDim

      public List<String> subListDim(int start, int end)
    • getDimList

      public List<String> getDimList()
    • setMCType

      public void setMCType(ASTMCType mCType)
    • setMCTypeAbsent

      public void setMCTypeAbsent()
    • setName

      public void setName(String name)
      Specified by:
      setName in interface ASTVariable
    • setExpression

      public void setExpression(ASTExpression expression)
    • setExpressionAbsent

      public void setExpressionAbsent()
    • clearDim

      public void clearDim()
    • addDim

      public boolean addDim(String element)
    • addAllDim

      public boolean addAllDim(Collection<? extends String> collection)
    • removeDim

      public boolean removeDim(Object element)
    • removeAllDim

      public boolean removeAllDim(Collection<?> collection)
    • retainAllDim

      public boolean retainAllDim(Collection<?> collection)
    • removeIfDim

      public boolean removeIfDim(Predicate<? super String> filter)
    • forEachDim

      public void forEachDim(Consumer<? super String> action)
    • addDim

      public void addDim(int index, String element)
    • addAllDim

      public boolean addAllDim(int index, Collection<? extends String> collection)
    • removeDim

      public String removeDim(int index)
    • setDim

      public String setDim(int index, String element)
    • replaceAllDim

      public void replaceAllDim(UnaryOperator<String> operator)
    • sortDim

      public void sortDim(Comparator<? super String> comparator)
    • setDimList

      public void setDimList(List<String> dim)
    • 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.
      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.
      Specified by:
      accept in interface ASTBasicSymbolsNode
      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 ASTOCLVariableDeclaration _construct()
    • getSymbol

      public VariableSymbol getSymbol()
      Specified by:
      getSymbol in interface ASTVariable
    • isPresentSymbol

      public boolean isPresentSymbol()
      Specified by:
      isPresentSymbol in interface ASTVariable
    • setSymbol

      public void setSymbol(VariableSymbol symbol)
    • setSymbolAbsent

      public void setSymbolAbsent()
    • getEnclosingScope

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

      public void setEnclosingScope(IOCLExpressionsScope enclosingScope)
    • setEnclosingScope

      public void setEnclosingScope(IExpressionsBasisScope enclosingScope)
    • setEnclosingScope

      public void setEnclosingScope(IMCBasicTypesScope enclosingScope)
    • setEnclosingScope

      public void setEnclosingScope(IBasicSymbolsScope enclosingScope)
      Specified by:
      setEnclosingScope in interface ASTVariable
    • setEnclosingScope

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

      public void setEnclosingScope(IMCLiteralsBasisScope enclosingScope)
    • 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