|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.foray.ps.PsObjectComposite
org.foray.ps.PsArray
public class PsArray
A PostScript array.
Constructor Summary | |
---|---|
PsArray(Object[] value,
boolean executable)
Constructor. |
Method Summary | |
---|---|
PsMatrix |
convertToMatrix()
Attempts to convert this into a PsMatrix instance. |
PsObject |
duplicate()
This is a shallow copy. |
PsObject |
get(int index)
Return one item from the array. |
PsName |
getTypeName()
Needed for the "type" operator. |
boolean |
isComparable(PsObject object)
Test the comparability of two PSObjects. |
boolean |
isComposite()
The method should be overridden by composite objects. |
boolean |
isExecutable()
Indicates whether this object is executable. |
void |
set(int index,
Object object)
Sets the value of one item in the array. |
void |
setExecutable(boolean executable)
Sets the executable status of this array. |
int |
size()
Return the size of this array. |
Methods inherited from class org.foray.ps.PsObjectComposite |
---|
getAccess, setAccess |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PsArray(Object[] value, boolean executable)
value
- The value to encapsulate.executable
- Set to true if this object is executable.Method Detail |
---|
public PsObject duplicate()
PsObject
public boolean isComposite()
PsObject
public boolean isExecutable()
PsObject
public boolean isComparable(PsObject object)
PsObject
object
- The object that should be tested for comparability.
this
is comparable to object
,
false otherwise.public PsName getTypeName()
PsObject
public int size()
public PsObject get(int index)
index
- The index to the array item.
public void set(int index, Object object)
index
- The index to the array item.object
- The object which should be set at the array location for index
.public PsMatrix convertToMatrix()
public void setExecutable(boolean executable)
executable
- The status to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |