Package com.dylibso.chicory.wasm.types
Class FunctionType
- java.lang.Object
-
- com.dylibso.chicory.wasm.types.FunctionType
-
public final class FunctionType extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FunctionTypeaccepting(ValueType valueType)static FunctionTypeempty()booleanequals(FunctionType other)booleanequals(Object obj)inthashCode()static FunctionTypeof(ValueType[] params, ValueType[] returns)static FunctionTypeof(List<ValueType> params, List<ValueType> returns)List<ValueType>params()booleanparamsMatch(FunctionType other)static FunctionTypereturning(ValueType valueType)List<ValueType>returns()booleanreturnsMatch(FunctionType other)StringtoString()booleantypesMatch(FunctionType other)
-
-
-
Method Detail
-
paramsMatch
public boolean paramsMatch(FunctionType other)
-
returnsMatch
public boolean returnsMatch(FunctionType other)
-
equals
public boolean equals(FunctionType other)
-
returning
public static FunctionType returning(ValueType valueType)
-
accepting
public static FunctionType accepting(ValueType valueType)
-
of
public static FunctionType of(List<ValueType> params, List<ValueType> returns)
-
typesMatch
public boolean typesMatch(FunctionType other)
-
of
public static FunctionType of(ValueType[] params, ValueType[] returns)
-
empty
public static FunctionType empty()
-
-