Class ValueTypeParser
- java.lang.Object
-
- de.inetsoftware.jwebassembly.wasm.ValueTypeParser
-
-
Field Summary
Fields Modifier and Type Field Description private int
idx
private java.lang.String
sig
private TypeManager
types
-
Constructor Summary
Constructors Constructor Description ValueTypeParser(java.lang.String javaSignature, TypeManager types)
Create a new parser.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
AnyType
next()
Get the next value in the signature or null if the parameter are end or the signature is end.private AnyType
next(boolean isArray)
Get the next value in the signature or null if the parameter are end or the signature is end.
-
-
-
Field Detail
-
sig
private final java.lang.String sig
-
idx
private int idx
-
types
private final TypeManager types
-
-
Constructor Detail
-
ValueTypeParser
public ValueTypeParser(java.lang.String javaSignature, TypeManager types)
Create a new parser.- Parameters:
javaSignature
- the Java signaturetypes
- the optional type manager
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<AnyType>
-
next
public AnyType next()
Get the next value in the signature or null if the parameter are end or the signature is end.- Specified by:
next
in interfacejava.util.Iterator<AnyType>
- Returns:
- next type or null
-
next
private AnyType next(boolean isArray)
Get the next value in the signature or null if the parameter are end or the signature is end.- Parameters:
isArray
- true, if this is an element type of an array- Returns:
- next type or null
-
-