Class UnaryExpression
- java.lang.Object
-
- de.mirkosertic.bytecoder.core.backend.wasm.ast.UnaryExpression
-
- All Implemented Interfaces:
WasmExpression,WasmValue
- Direct Known Subclasses:
F32Ceil,F32ConvertSI32,F32ConvertSI64,F32DemoteF64,F32Floor,F32Nearest,F32Neg,F32ReinterpretI32,F32Sqrt,F32Trunc,F64ConvertSI32,F64ConvertSI64,F64Neg,F64PromoteF32,F64ReinterpretI64,F64Trunc,I32Clz,I32Ctz,I32Eqz,I32Popcount,I32ReinterpretF32,I32TruncSF32,I32TruncSF64,I32WrapI64,I64ExtendI32S,I64ReinterpretF64,I64TruncSF32,I64TruncSF64,RefIsNull,ReturnValue
public abstract class UnaryExpression extends java.lang.Object implements WasmExpression
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface de.mirkosertic.bytecoder.core.backend.wasm.ast.WasmValue
WasmValue.ExportContext
-
-
Field Summary
Fields Modifier and Type Field Description private bytebinaryCodeprivate java.lang.StringtextCodeprivate WasmValuevalue
-
Constructor Summary
Constructors Modifier Constructor Description protectedUnaryExpression(WasmValue value, java.lang.String textCode, byte binaryCode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwriteTo(BinaryWriter.Writer codeWriter, WasmValue.ExportContext context)voidwriteTo(TextWriter textWriter, WasmValue.ExportContext context)
-
-
-
Field Detail
-
value
private final WasmValue value
-
textCode
private final java.lang.String textCode
-
binaryCode
private final byte binaryCode
-
-
Constructor Detail
-
UnaryExpression
protected UnaryExpression(WasmValue value, java.lang.String textCode, byte binaryCode)
-
-
Method Detail
-
writeTo
public void writeTo(TextWriter textWriter, WasmValue.ExportContext context) throws java.io.IOException
-
writeTo
public void writeTo(BinaryWriter.Writer codeWriter, WasmValue.ExportContext context) throws java.io.IOException
-
-