Interface ExpressionWriter
- All Known Implementing Classes:
AbstractStatementAwareExpressionWriter
public sealed interface ExpressionWriter
permits AbstractStatementAwareExpressionWriter (not exhaustive)
The expression writer.
- Since:
- 1.5
- Author:
- Denis Stepano
-
Method Summary
Modifier and TypeMethodDescriptionstatic ExpressionWriter
of
(ExpressionDef expressionDef) Create a writer from an expression.void
write
(org.objectweb.asm.commons.GeneratorAdapter generatorAdapter, MethodContext context) Write the expression.static void
writeExpression
(org.objectweb.asm.commons.GeneratorAdapter generatorAdapter, MethodContext context, ExpressionDef expressionDef) static void
writeExpressionCheckCast
(org.objectweb.asm.commons.GeneratorAdapter generatorAdapter, MethodContext context, ExpressionDef expressionDef, TypeDef expectedType)
-
Method Details
-
of
Create a writer from an expression.- Parameters:
expressionDef
- The expression- Returns:
- the writer
-
writeExpression
static void writeExpression(org.objectweb.asm.commons.GeneratorAdapter generatorAdapter, MethodContext context, ExpressionDef expressionDef) -
writeExpressionCheckCast
static void writeExpressionCheckCast(org.objectweb.asm.commons.GeneratorAdapter generatorAdapter, MethodContext context, ExpressionDef expressionDef, TypeDef expectedType) -
write
Write the expression.- Parameters:
generatorAdapter
- The adaptercontext
- The method context
-