public class LiteralFolding extends Object
Constructor and Description |
---|
LiteralFolding() |
Modifier and Type | Method and Description |
---|---|
static Literal |
foldArithmetic(RawJavaType returnType,
Literal l,
ArithOp op) |
static Literal |
foldArithmetic(RawJavaType returnType,
Literal l,
Literal r,
ArithOp op)
Fold an arithmetic operations.
|
static Literal |
foldCast(Literal val,
RawJavaType returnType) |
public static Literal foldArithmetic(RawJavaType returnType, Literal l, Literal r, ArithOp op)
public static Literal foldArithmetic(RawJavaType returnType, Literal l, ArithOp op)
public static Literal foldCast(Literal val, RawJavaType returnType)
Copyright © 2011-2021. All Rights Reserved.