Class OldValueExpression

  • All Implemented Interfaces:
    org.codehaus.groovy.ast.Variable

    public class OldValueExpression
    extends org.codehaus.groovy.ast.expr.VariableExpression
    Used to represent the argument to Specification.old() once it has been processed by IRewriteResources.captureOldValue(). The original expression is kept in case ConditionRewriter still needs it.
    Author:
    Peter Niederwieser
    • Field Summary

      • Fields inherited from class org.codehaus.groovy.ast.expr.VariableExpression

        SUPER_EXPRESSION, THIS_EXPRESSION
    • Constructor Summary

      Constructors 
      Constructor Description
      OldValueExpression​(org.codehaus.groovy.ast.expr.Expression originalExpression, java.lang.String substitutedVariable)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.codehaus.groovy.ast.expr.Expression getOrginalExpression()  
      • Methods inherited from class org.codehaus.groovy.ast.expr.VariableExpression

        getAccessedVariable, getInitialExpression, getModifiers, getName, getOriginType, getText, getType, hasInitialExpression, isClosureSharedVariable, isDynamicTyped, isInStaticContext, isSuperExpression, isThisExpression, isUseReferenceDirectly, setAccessedVariable, setClosureSharedVariable, setInStaticContext, setModifiers, setType, setUseReferenceDirectly, toString, transformExpression, visit
      • Methods inherited from class org.codehaus.groovy.ast.expr.Expression

        transformExpressions, transformExpressions
      • Methods inherited from class org.codehaus.groovy.ast.AnnotatedNode

        addAnnotation, addAnnotations, getAnnotations, getAnnotations, getDeclaringClass, hasNoRealSourcePosition, isSynthetic, setDeclaringClass, setHasNoRealSourcePosition, setSynthetic
      • Methods inherited from class org.codehaus.groovy.ast.ASTNode

        copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getNodeMetaData, getNodeMetaData, putNodeMetaData, removeNodeMetaData, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setNodeMetaData, setSourcePosition
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • OldValueExpression

        public OldValueExpression​(org.codehaus.groovy.ast.expr.Expression originalExpression,
                                  java.lang.String substitutedVariable)
    • Method Detail

      • getOrginalExpression

        public org.codehaus.groovy.ast.expr.Expression getOrginalExpression()