|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bluej.extensions.BArray
public class BArray
A wrapper for an array object in BlueJ. Behaviour is similar to the Java reflection API.
Constructor Summary | |
---|---|
BArray()
|
Method Summary | |
---|---|
static java.lang.Object |
getValue(BObject thisArray,
int itemIndex)
Given a BlueJ array object, returns the item at the given index. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BArray()
Method Detail |
---|
public static java.lang.Object getValue(BObject thisArray, int itemIndex) throws ProjectNotOpenException, PackageNotFoundException
int
etc.),
the return value is of the appropriate Java wrapper type (Integer
etc.).
In the case that the array is composed of BlueJ objects (including nested arrays) then
an appropriate BObject will be returned.
thisArray
- This must be an array object of which you want the given item.itemIndex
- The index in the array where you want to peek.
ProjectNotOpenException
- if the project to which this array belongs has been closed by the user.
PackageNotFoundException
- if the package to which this array belongs has been deleted by the user.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |