Class ValueTypeParser

  • All Implemented Interfaces:
    java.util.Iterator<AnyType>

    public class ValueTypeParser
    extends java.lang.Object
    implements java.util.Iterator<AnyType>
    Parser for a Java signature. This can be a method signature or a signature of a field.
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining, remove
    • Field Detail

      • sig

        private final java.lang.String sig
      • idx

        private int idx
    • Constructor Detail

      • ValueTypeParser

        public ValueTypeParser​(java.lang.String javaSignature,
                               TypeManager types)
        Create a new parser.
        Parameters:
        javaSignature - the Java signature
        types - the optional type manager
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.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 interface java.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