|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoscript.data.Value
oscript.data.OObject
oscript.data.JavaPackageWrapper
A wrapper for a java package.
Field Summary | |
static java.lang.String[] |
MEMBER_NAMES
|
static java.lang.String |
PARENT_TYPE_NAME
|
static Value |
TYPE
The type object for an instance of ExactNumber. |
static java.lang.String |
TYPE_NAME
|
Fields inherited from class oscript.data.OObject |
EMPTY_EXPR_LIST_EVALUATOR |
Fields inherited from class oscript.data.Value |
DEBUG, NULL, UNDEFINED |
Constructor Summary | |
JavaPackageWrapper(MemberTable args)
Class Constructor. |
Method Summary | |
java.lang.String |
castToString()
Convert this object to a native java String value. |
static void |
declarePackage(java.lang.String javaPackageName)
Used to declare the existance of a java package. |
Value |
getMember(int id,
boolean exception)
Get a member of this object. |
static Value |
getPackageWrapper(java.lang.String javaPackageName)
Factory method for package-wrappers. |
protected Value |
getTypeImpl()
Get the type of this object. |
protected void |
populateMemberSet(java.util.Set s,
boolean debugger)
Derived classes that implement getMember(int, boolean) should also
implement this. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final Value TYPE
public static final java.lang.String PARENT_TYPE_NAME
public static final java.lang.String TYPE_NAME
public static final java.lang.String[] MEMBER_NAMES
Constructor Detail |
public JavaPackageWrapper(MemberTable args)
args
- arguments to this constructor
PackagedScriptObjectException(Exception)
- if wrong number of argsMethod Detail |
public static void declarePackage(java.lang.String javaPackageName)
javaPackageName
- the java package namepublic static Value getPackageWrapper(java.lang.String javaPackageName)
javaPackageName
- the java package name
null
if no such packageprotected Value getTypeImpl()
Value.getType()
.
getTypeImpl
in class OObject
public java.lang.String castToString() throws PackagedScriptObjectException
String
value.
castToString
in class OObject
PackagedScriptObjectException(NoSuchMethodException)
PackagedScriptObjectException
public Value getMember(int id, boolean exception) throws PackagedScriptObjectException
getMember
in class OObject
id
- the id of the symbol that maps to the memberexception
- whether an exception should be thrown if the
member object is not resolved
PackagedScriptObjectException(NoSuchMethodException)
PackagedScriptObjectException
protected void populateMemberSet(java.util.Set s, boolean debugger)
getMember(int, boolean)
should also
implement this.
populateMemberSet
in class OObject
s
- the set to populatedebugger
- true
if being used by debugger, in
which case both public and private/protected field names should
be returnedgetMember(int, boolean)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |