Class ValueTypeParser
- java.lang.Object
-
- de.inetsoftware.jwebassembly.wasm.ValueTypeParser
-
-
Field Summary
Fields Modifier and Type Field Description private intidxprivate java.lang.Stringsigprivate TypeManagertypes
-
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 booleanhasNext()AnyTypenext()Get the next value in the signature or null if the parameter are end or the signature is end.private AnyTypenext(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:
hasNextin 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:
nextin 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
-
-