Package javassist.bytecode
Class Descriptor.Iterator
java.lang.Object
javassist.bytecode.Descriptor.Iterator
- Enclosing class:
Descriptor
An Iterator over a descriptor.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncharReturns the first character of the current element.booleanhasNext()Returns true if the iteration has more elements.booleanis2byte()Returns true if the current element is double or long type.booleanReturns true if the current element is a parameter type.intnext()Returns the position of the next type character.
-
Constructor Details
-
Iterator
Constructs an iterator.- Parameters:
s- descriptor.
-
-
Method Details
-
hasNext
public boolean hasNext()Returns true if the iteration has more elements. -
isParameter
public boolean isParameter()Returns true if the current element is a parameter type. -
currentChar
public char currentChar()Returns the first character of the current element. -
is2byte
public boolean is2byte()Returns true if the current element is double or long type. -
next
public int next()Returns the position of the next type character. That type character becomes a new current element.
-