public class CastExpressionOptimizer
extends Object
Simplifies casts and coercions that the static compiler can safely emit directly.
| Constructor and description |
|---|
CastExpressionOptimizer(StaticCompilationTransformer staticCompilationTransformer)Creates a cast optimizer backed by the owning static compilation transformer. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public Expression |
transformCastExpression(CastExpression cast)Rewrites a cast expression when the cast or coercion can be simplified. |
Creates a cast optimizer backed by the owning static compilation transformer.
staticCompilationTransformer - the shared transformer contextRewrites a cast expression when the cast or coercion can be simplified.
cast - the cast expression to transformCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.