org.cojen.classfile
Interface LocalVariable


public interface LocalVariable

Author:
Brian S O'Neill
See Also:
CodeBuilder.createLocalVariable(java.lang.String, org.cojen.classfile.TypeDesc)

Method Summary
 Set getLocationRangeSet()
          Returns the ranges for which this variable is used.
 String getName()
          May return null if this LocalVariable is unnamed.
 int getNumber()
          Returns the number used by this LocalVariable, or -1 if not yet resolved.
 TypeDesc getType()
           
 boolean isDoubleWord()
           
 void setName(String name)
           
 

Method Detail

getName

String getName()
May return null if this LocalVariable is unnamed.


setName

void setName(String name)

getType

TypeDesc getType()

isDoubleWord

boolean isDoubleWord()

getNumber

int getNumber()
Returns the number used by this LocalVariable, or -1 if not yet resolved.


getLocationRangeSet

Set getLocationRangeSet()
Returns the ranges for which this variable is used. This is optional information, and null may be returned.

Returns:
an unmodifiable set of LocationRange objects.


Copyright © 2004-2011 Brian S O'Neill. All Rights Reserved.