oscript.data
Class SunRegExp

java.lang.Object
  extended byoscript.data.Value
      extended byoscript.data.OObject
          extended byoscript.data.RegExp
              extended byoscript.data.SunRegExp
All Implemented Interfaces:
java.io.Serializable

public class SunRegExp
extends oscript.data.RegExp

An implementation of RegExp that under the hood uses the java.util.regex package that comes with j2se v1.4

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

Nested Class Summary
 
Nested classes inherited from class oscript.data.RegExp
oscript.data.RegExp.RegExpFactory
 
Field Summary
static java.lang.String[] MEMBER_NAMES
           
static java.lang.String PARENT_TYPE_NAME
           
static oscript.data.Value TYPE
           
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
SunRegExp(oscript.util.MemberTable args)
          Class Constructor.
 
Method Summary
 oscript.data.RegExpResult exec(oscript.data.Value str)
          Execute the search for a match against a string.
static void init()
          Called from bootstrap code, to give us change to register this RegExp implementation
 
Methods inherited from class oscript.data.RegExp
castToString, createRegExp, getTypeImpl, register, test
 
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, elementAt, elementsAt, getMember, getMember, getMember, getMember, getMember, getMonitor, getType, getTypeMember, getTypeMember, isA, length, 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
 

Field Detail

TYPE

public static final oscript.data.Value TYPE

PARENT_TYPE_NAME

public static final java.lang.String PARENT_TYPE_NAME
See Also:
Constant Field Values

TYPE_NAME

public static final java.lang.String TYPE_NAME
See Also:
Constant Field Values

MEMBER_NAMES

public static final java.lang.String[] MEMBER_NAMES
Constructor Detail

SunRegExp

public SunRegExp(oscript.util.MemberTable args)
Class Constructor. This is the constructor that is called via a BuiltinType instance.

Parameters:
args - arguments to this constructor
Throws:
PackagedScriptObjectException(Exception) - if wrong number of args
Method Detail

init

public static void init()
Called from bootstrap code, to give us change to register this RegExp implementation


exec

public oscript.data.RegExpResult exec(oscript.data.Value str)
Execute the search for a match against a string.

Note that this API is modeled after the JavaScript RegExp API, for the benefit of users already familiar with JavaScript.

Parameters:
str - the string to match
Returns:
the result object