Class ValueCopyVisitor

java.lang.Object
net.ssehub.easy.varModel.model.rewrite.ValueCopyVisitor
All Implemented Interfaces:
IValueVisitor

class ValueCopyVisitor extends Object implements IValueVisitor
Parts of CSTCopyVisitor and ProjectCopyVisitor, to create a deep copy of Values.
Author:
El-Sharkawy
  • Field Details

  • Constructor Details

    • ValueCopyVisitor

      ValueCopyVisitor(ProjectCopyVisitor copyier)
      Single constracutor for this class.
      Parameters:
      copyier - The currently used ProjectCopyVisitor containing the mapping of translated elements.
  • Method Details

    • getResult

      Value getResult()
      Returns the deep copied value after visitation.
      Returns:
      The copied value.
    • translatedCompletely

      boolean translatedCompletely()
      Specifies whether the Value could be translated completely.
      Returns:
      true value was translated completely, false if some parts of the value must still be translated.
    • visitConstraintValue

      public void visitConstraintValue(ConstraintValue value)
      Description copied from interface: IValueVisitor
      This method is used for visiting ConstraintValue.
      Specified by:
      visitConstraintValue in interface IValueVisitor
      Parameters:
      value - One ConstraintValue which should be visited.
    • visitEnumValue

      public void visitEnumValue(EnumValue value)
      Description copied from interface: IValueVisitor
      This method is used for visiting EnumValue.
      Specified by:
      visitEnumValue in interface IValueVisitor
      Parameters:
      value - One EnumValue which should be visited.
    • visitStringValue

      public void visitStringValue(StringValue value)
      Description copied from interface: IValueVisitor
      This method is used for visiting StringValue.
      Specified by:
      visitStringValue in interface IValueVisitor
      Parameters:
      value - One StringValue which should be visited.
    • visitCompoundValue

      public void visitCompoundValue(CompoundValue value)
      Description copied from interface: IValueVisitor
      This method is used for visiting CompoundValue.
      Specified by:
      visitCompoundValue in interface IValueVisitor
      Parameters:
      value - One CompoundValue which should be visited.
    • visitContainerValue

      public void visitContainerValue(ContainerValue value)
      Description copied from interface: IValueVisitor
      This method is used for visiting ContainerValue.
      Specified by:
      visitContainerValue in interface IValueVisitor
      Parameters:
      value - One CompoundValue which should be visited.
    • visitIntValue

      public void visitIntValue(IntValue value)
      Description copied from interface: IValueVisitor
      This method is used for visiting IntValue.
      Specified by:
      visitIntValue in interface IValueVisitor
      Parameters:
      value - One IntValue which should be visited.
    • visitRealValue

      public void visitRealValue(RealValue value)
      Description copied from interface: IValueVisitor
      This method is used for visiting RealValue.
      Specified by:
      visitRealValue in interface IValueVisitor
      Parameters:
      value - One RealValue which should be visited.
    • visitBooleanValue

      public void visitBooleanValue(BooleanValue value)
      Description copied from interface: IValueVisitor
      This method is used for visiting BooleanValue.
      Specified by:
      visitBooleanValue in interface IValueVisitor
      Parameters:
      value - One BooleanValue which should be visited.
    • visitReferenceValue

      public void visitReferenceValue(ReferenceValue referenceValue)
      Description copied from interface: IValueVisitor
      This method is used for visiting referenceValue.
      Specified by:
      visitReferenceValue in interface IValueVisitor
      Parameters:
      referenceValue - One referenceValue which should be visited.
    • visitMetaTypeValue

      public void visitMetaTypeValue(MetaTypeValue value)
      Description copied from interface: IValueVisitor
      This method is used for visiting meta type value.
      Specified by:
      visitMetaTypeValue in interface IValueVisitor
      Parameters:
      value - a value which should be visited.
    • visitNullValue

      public void visitNullValue(NullValue value)
      Description copied from interface: IValueVisitor
      This method is used for visiting a null value.
      Specified by:
      visitNullValue in interface IValueVisitor
      Parameters:
      value - a value which should be visited (actually NullValue.INSTANCE).
    • visitVersionValue

      public void visitVersionValue(VersionValue value)
      Description copied from interface: IValueVisitor
      This method is used for visiting a version value.
      Specified by:
      visitVersionValue in interface IValueVisitor
      Parameters:
      value - a value which should be visited.