Package 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 theWriterControllerFactory
node metadata on a class node to provide a customWriterController
which would in turn use a custom expression helper.- See Also:
BinaryExpressionHelper
-
-
Field Summary
Fields Modifier and Type Field Description protected WriterController
controller
-
Constructor Summary
Constructors Constructor Description UnaryExpressionHelper(WriterController controller)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
writeBitwiseNegate(BitwiseNegationExpression expression)
void
writeNotExpression(NotExpression expression)
void
writeUnaryMinus(UnaryMinusExpression expression)
void
writeUnaryPlus(UnaryPlusExpression expression)
-
-
-
Field Detail
-
controller
protected final WriterController controller
-
-
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)
-
-