Package oracle.rules.rl
Class RLArray
java.lang.Object
oracle.rules.rl.RLArray
Part of reflection API for RL classes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RLObjectReturns the value of the indexed component in the specified array object.static intGet length of RL array.static RLObjectnewInstance(RLClass componentType, int length) Create new RL array instance.static voidSet the value of the indexed component in the specified array Object.
-
Constructor Details
-
RLArray
public RLArray()
-
-
Method Details
-
get
public static RLObject get(RLObject array, int index) throws RLIllegalArgumentException, RLArrayIndexOutOfBoundsException Returns the value of the indexed component in the specified array object.- Returns:
- RLObject
- Throws:
RLIllegalArgumentExceptionRLArrayIndexOutOfBoundsException
-
set
public static void set(RLObject array, int index, RLObject value) throws RLIllegalArgumentException, RLArrayIndexOutOfBoundsException, RLArrayStoreException Set the value of the indexed component in the specified array Object.- Parameters:
array- RLObject arrayindex- array componentvalue- new value of component- Throws:
RLIllegalArgumentExceptionRLArrayIndexOutOfBoundsExceptionRLArrayStoreException
-
getLength
Get length of RL array.- Returns:
- int length
- Throws:
RLIllegalArgumentException
-
newInstance
public static RLObject newInstance(RLClass componentType, int length) throws RLNegativeArraySizeException Create new RL array instance.- Parameters:
componentType- RLClass of componentslength- int >= 0- Returns:
- RLObject new array
- Throws:
RLNegativeArraySizeException
-