javassist.bytecode

Class Descriptor.Iterator

public static class Descriptor.Iterator extends Object

An Iterator over a descriptor.
Constructor Summary
Iterator(String s)
Constructs an iterator.
Method Summary
charcurrentChar()
Returns 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.
booleanisParameter()
Returns true if the current element is a parameter type.
intnext()
Returns the position of the next type character.

Constructor Detail

Iterator

public Iterator(String s)
Constructs an iterator.

Parameters: s descriptor.

Method Detail

currentChar

public char currentChar()
Returns the first character of the current element.

hasNext

public boolean hasNext()
Returns true if the iteration has more elements.

is2byte

public boolean is2byte()
Returns true if the current element is double or long type.

isParameter

public boolean isParameter()
Returns true if the current element is a parameter type.

next

public int next()
Returns the position of the next type character. That type character becomes a new current element.
Javassist, a Java-bytecode translator toolkit.
Copyright (C) 1999-2006 Shigeru Chiba. All Rights Reserved.