mjc

org.multijava.mjc
Interface VariableDescriptor

All Known Implementing Classes:
CSourceField, JLocalVariable

public interface VariableDescriptor

This interface represents the type of an object that provides a description of a variable or field (hereafter, "slot"). The description includes the slot's lexical address (a number identifying the slot, unique within any lexical contour in which the slot is in scope), the slot's identifier, and whether the slot is declared final.

Version:
$Revision: 1.1 $
Author:
Curtis Clifton

Method Summary
 String ident()
          Returns the (unqualified) identifier for the slot.
 int index()
          Returns the slot's lexical address, a number identifying the slot, unique within any lexical contour in which the slot is in scope.
 boolean isFinal()
          Returns true iff the slot is declared final.
 

Method Detail

index

public int index()
Returns the slot's lexical address, a number identifying the slot, unique within any lexical contour in which the slot is in scope.


ident

public String ident()
Returns the (unqualified) identifier for the slot.


isFinal

public boolean isFinal()
Returns true iff the slot is declared final.


mjc

mjc is Copyright (C) 2000-2004 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. mjc is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.