Class MapEntryExpression

All Implemented Interfaces:
GroovydocHolder<AnnotatedNode>, NodeMetaDataHandler

public class MapEntryExpression
extends Expression
Represents an entry inside a map expression such as 1 : 2.
  • Constructor Details

    • MapEntryExpression

      public MapEntryExpression​(Expression keyExpression, Expression valueExpression)
  • Method Details

    • visit

      public void visit​(GroovyCodeVisitor visitor)
      Overrides:
      visit in class ASTNode
    • transformExpression

      public Expression transformExpression​(ExpressionTransformer transformer)
      Description copied from class: Expression
      Return a copy of the expression calling the transformer on any nested expressions
      Specified by:
      transformExpression in class Expression
    • toString

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

      public Expression getKeyExpression()
    • getValueExpression

      public Expression getValueExpression()
    • setKeyExpression

      public void setKeyExpression​(Expression keyExpression)
    • setValueExpression

      public void setValueExpression​(Expression valueExpression)