oscript.data
Class SunRegExpResult

java.lang.Object
  extended byoscript.data.Value
      extended byoscript.data.OObject
          extended byoscript.data.RegExpResult
              extended byoscript.data.SunRegExpResult
All Implemented Interfaces:
java.io.Serializable

public class SunRegExpResult
extends oscript.data.RegExpResult

The implementation of RegExpResult using Sun's java.util.regex package that comes with j2se v1.4 and later.

Version:
1.15
Author:
Rob Clark (rob@ti.com)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class oscript.data.RegExpResult
MEMBER_NAMES, PARENT_TYPE_NAME, TYPE, TYPE_NAME
 
Fields inherited from class oscript.data.OObject
EMPTY_EXPR_LIST_EVALUATOR
 
Fields inherited from class oscript.data.Value
DEBUG, NULL, UNDEFINED
 
Method Summary
 java.lang.String castToString()
          Convert this object to a native java String value.
 oscript.data.Value elementAt(oscript.data.Value oidx)
          Get the specified index of this object, if this object is an array.
 oscript.data.Value getIndex()
          The index of the match in the string, or -1 if no match.
 int length()
          For types that implement elementAt, this returns the number of elements.
 
Methods inherited from class oscript.data.RegExpResult
getInput, getTypeImpl
 
Methods inherited from class oscript.data.OObject
getMember, populateMemberSet
 
Methods inherited from class oscript.data.Value
_getTypeMember, _populateTypeMemberSet, bopBitwiseAnd, bopBitwiseAndR, bopBitwiseOr, bopBitwiseOrR, bopBitwiseXor, bopBitwiseXorR, bopCast, bopCastR, bopDivide, bopDivideR, bopEquals, bopEqualsR, bopGreaterThan, bopGreaterThanOrEquals, bopGreaterThanOrEqualsR, bopGreaterThanR, bopInstanceOf, bopInstanceOfR, bopLeftShift, bopLeftShiftR, bopLessThan, bopLessThanOrEquals, bopLessThanOrEqualsR, bopLessThanR, bopLogicalAnd, bopLogicalAndR, bopLogicalOr, bopLogicalOrR, bopMinus, bopMinusR, bopMultiply, bopMultiplyR, bopNotEquals, bopNotEqualsR, bopPlus, bopPlusR, bopRemainder, bopRemainderR, bopSignedRightShift, bopSignedRightShiftR, bopUnsignedRightShift, bopUnsignedRightShiftR, callAsConstructor, callAsConstructor, callAsConstructor, callAsExtends, callAsExtends, callAsExtends, callAsFunction, callAsFunction, callAsFunction, castToBoolean, castToExactNumber, castToInexactNumber, castToJavaObject, elementsAt, getMember, getMember, getMember, getMember, getMember, getMonitor, getType, getTypeMember, getTypeMember, isA, memberSet, noSuchMember, opAssign, populateTypeMemberSet, readExternal, toString, unhand, uopBitwiseNot, uopDecrement, uopIncrement, uopLogicalNot, uopMinus, uopPlus, writeExternal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getIndex

public oscript.data.Value getIndex()
The index of the match in the string, or -1 if no match.


length

public int length()
           throws oscript.exceptions.PackagedScriptObjectException
For types that implement elementAt, this returns the number of elements.

Returns:
an integer length
Throws:
PackagedScriptObjectException(NoSuchMemberException)
oscript.exceptions.PackagedScriptObjectException
See Also:
elementAt(oscript.data.Value), Value.elementsAt(oscript.data.Value, oscript.data.Value)

elementAt

public oscript.data.Value elementAt(oscript.data.Value oidx)
                             throws oscript.exceptions.PackagedScriptObjectException
Get the specified index of this object, if this object is an array. If needed, the array is grown to the appropriate size.

Returns:
a reference to the member
Throws:
PackagedScriptObjectException(NoSuchMemberException)
oscript.exceptions.PackagedScriptObjectException
See Also:
length()

castToString

public java.lang.String castToString()
                              throws oscript.exceptions.PackagedScriptObjectException
Convert this object to a native java String value.

Returns:
a String value
Throws:
PackagedScriptObjectException(NoSuchMethodException)
oscript.exceptions.PackagedScriptObjectException