|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.foray.ps.PsName
public class PsName
Class representing a name PostScript object.
| Constructor Summary | |
|---|---|
PsName(String value,
boolean executable,
boolean immediatelyEvaluated)
Constructor. |
|
| Method Summary | |
|---|---|
static PsName |
create(PsInterpreter4a interpreter,
byte[] input)
Static method to attempt to create a PsName instance, if the input qualifies. |
PsObject |
duplicate()
This is a shallow copy. |
boolean |
equals(Object anObject)
|
PsName |
getTypeName()
Needed for the "type" operator. |
String |
getValue()
Returns the value. |
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 |
setExecutable(boolean newExecutable)
Sets the executable status of this name. |
int |
size()
Return the size of this name. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PsName(String value,
boolean executable,
boolean immediatelyEvaluated)
value - The value to encapsulate.executable - Set to true if this object is executable.immediatelyEvaluated - Set to true if this name should be evaluated
immediately.| Method Detail |
|---|
public static PsName create(PsInterpreter4a interpreter,
byte[] input)
interpreter - The parent interpreter.input - The byte array containing the content to be converted to
a PsName instance.
public PsObject duplicate()
PsObject
duplicate in interface PsObjectpublic boolean equals(Object anObject)
equals in class Objectpublic boolean isExecutable()
PsObject
isExecutable in interface PsObjectpublic boolean isComparable(PsObject object)
PsObject
isComparable in interface PsObjectobject - The object that should be tested for comparability.
this is comparable to object,
false otherwise.public PsName getTypeName()
PsObject
getTypeName in interface PsObjectpublic int size()
public String toString()
toString in class Objectpublic String getValue()
public void setExecutable(boolean newExecutable)
newExecutable - The new executable status of this name. Set to
true to make it executable, set it to false to make it not executable.public boolean isComposite()
PsObject
isComposite in interface PsObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||