UnaryExpressionHelper (Groovy 2.4.6)
Date: 2016-02-18

org.codehaus.groovy.classgen.asm

## Class UnaryExpressionHelper

- java.lang.Object
- - org.codehaus.groovy.classgen.asm.UnaryExpressionHelper

- Direct Known Subclasses:
    StaticTypesUnaryExpressionHelper

      public class UnaryExpressionHelper
      extends Object

  A helper class used to generate bytecode for unary expressions. AST transformations willing to use a custom unary expression helper may set the `WriterControllerFactory` node metadata on a class node to provide a custom `WriterController` which would in turn use a custom expression helper.
  Author:
    Cedric Champeau
  See Also:
    `BinaryExpressionHelper`

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `UnaryExpressionHelper(WriterController controller)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `writeBitwiseNegate(BitwiseNegationExpression expression)`
    `void` | `writeNotExpression(NotExpression expression)`
    `void` | `writeUnaryMinus(UnaryMinusExpression expression)`
    `void` | `writeUnaryPlus(UnaryPlusExpression expression)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### UnaryExpressionHelper

          public UnaryExpressionHelper(WriterController controller)

  - ### Method Detail

    - #### writeUnaryPlus

          public void writeUnaryPlus(UnaryPlusExpression expression)

    - #### writeUnaryMinus

          public void writeUnaryMinus(UnaryMinusExpression expression)

    - #### writeBitwiseNegate

          public void writeBitwiseNegate(BitwiseNegationExpression expression)

    - #### writeNotExpression

          public void writeNotExpression(NotExpression expression)