Class WasmExpression

java.lang.Object
org.teavm.backend.wasm.model.expression.WasmExpression
Direct Known Subclasses:
WasmArrayCopy, WasmArrayGet, WasmArrayLength, WasmArrayNewDefault, WasmArrayNewFixed, WasmArraySet, WasmBlock, WasmBranch, WasmBreak, WasmCall, WasmCallReference, WasmCast, WasmCastBranch, WasmConditional, WasmConversion, WasmCopy, WasmDrop, WasmExternConversion, WasmFill, WasmFloat32Constant, WasmFloat64Constant, WasmFloatBinary, WasmFloatUnary, WasmFunctionReference, WasmGetGlobal, WasmGetLocal, WasmIndirectCall, WasmInt31Get, WasmInt31Reference, WasmInt32Constant, WasmInt64Constant, WasmIntBinary, WasmIntUnary, WasmIsNull, WasmLoadFloat32, WasmLoadFloat64, WasmLoadInt32, WasmLoadInt64, WasmMemoryGrow, WasmNullBranch, WasmNullConstant, WasmReferencesEqual, WasmReturn, WasmSetGlobal, WasmSetLocal, WasmStoreFloat32, WasmStoreFloat64, WasmStoreInt32, WasmStoreInt64, WasmStructGet, WasmStructNew, WasmStructNewDefault, WasmStructSet, WasmSwitch, WasmTest, WasmThrow, WasmTry, WasmUnreachable

public abstract class WasmExpression extends Object
  • Method Details

    • getLocation

      public TextLocation getLocation()
    • setLocation

      public void setLocation(TextLocation location)
    • acceptVisitor

      public abstract void acceptVisitor(WasmExpressionVisitor visitor)
    • isTerminating

      public final boolean isTerminating()
    • isTerminating

      protected boolean isTerminating(Set<WasmBlock> blocks)
    • defaultValueOfType

      public static WasmExpression defaultValueOfType(WasmType type)