TASSELpy.java.lang.reflect package

Submodules

TASSELpy.java.lang.reflect.Array module

class TASSELpy.java.lang.reflect.Array.Array(*args, **kwargs)[source]

Bases: TASSELpy.java.lang.Object.Object

public final class Array extends Object

The Array class provides static methods to dynamically create and access Java arrays

Array permits widening conversions to occur during a get or set operation, but throws an IllegalArgumentException if a narrowing conversion would occur

Methods

castTo(pyType) Casts this object to another java/python type
clone(*args) Creates and returns a copy of this object
equals(*args) Indicates whether some other object is “equal to” this one
get(*args) Returns the value of the indexed component in the specified array object
getArray(size) Gets an empty wrapped java array that can accept the type of the wrapped
getBoolean(*args) Returns the value of the indexed component in the specified array object, as a boolean
getByte(*args) Returns the value of the indexed component in the specified array object, as a byte
getChar(*args) Returns the value of the indexed component in the specified array object, as a char
getClass(*args) Returns the runtime class of this Object.
getDblArray(rows[, cols]) Gets an empty wrapped java array that can accept the type of other wrapped java arrays: i.e.
getDouble(*args) Returns the value of the indexed component in the specified array object, as a double
getFloat(*args) Returns the value of the indexed component in the specified array object, as a float
getInt(*args) Returns the value of the indexed component in the specified array object, as a int
getLength(*args) Returns the length of the specified array object, as an int
getLong(*args) Returns the value of the indexed component in the specified array object, as a long
getShort(*args) Returns the value of the indexed component in the specified array object, as a short
hashCode(*args) Returns a hash code vlaue for the object
set(*args) Sets the vlaue of the indexed component of the specified array object ot the specified new value
setBoolean(*args) Sets the value of the indexed component of the specified array object to the specified boolean
setByte(*args) Sets the value of the indexed component of the specified array object to the specified byte
setDouble(*args) Sets the value of the indexed component of the specified array object to the specified double
setFloat(*args) Sets the value of the indexed component of the specified array object to the specified float
setInt(*args) Sets the value of the indexed component of the specified array object to the specified int
setLong(*args) Sets the value of the indexed component of the specified array object to the specified long
toString(*args) Returns a string representation of the object
wrap_existing_array(arr_instance) Wraps a java array of this class’s type
static get(*args)[source]

Returns the value of the indexed component in the specified array object

Signature:

get (Object array, int index)

Parameters:
  • array (Object) – The array
  • index (int) – The index of the object you want to get
Returns:

The object you want to get

Return type:

Object

static getBoolean(*args)[source]

Returns the value of the indexed component in the specified array object, as a boolean

Signatures:

static boolean getBoolean(Object array, int index)

Argumnts:

array – The array index – The index of the boolean you want to get

Returns:

The value as a boolean

static getByte(*args)[source]

Returns the value of the indexed component in the specified array object, as a byte

Signatures:

static byte getByte(Object array, int index)

Argumnts:

array – The array index – The index of the byte you want to get

Returns:

The value as a byte

static getChar(*args)[source]

Returns the value of the indexed component in the specified array object, as a char

Signatures:

static char getChar(Object array, int index)

Argumnts:

array – The array index – The index of the char you want to get

Returns:

The value as a char

static getDouble(*args)[source]

Returns the value of the indexed component in the specified array object, as a double

Signatures:

static double getDouble(Object array, int index)

Argumnts:

array – The array index – The index of the double you want to get

Returns:

The value as a double

static getFloat(*args)[source]

Returns the value of the indexed component in the specified array object, as a float

Signatures:

static float getFloat(Object array, int index)

Argumnts:

array – The array index – The index of the float you want to get

Returns:

The value as a float

static getInt(*args)[source]

Returns the value of the indexed component in the specified array object, as a int

Signatures:

static int getInt(Object array, int index)

Argumnts:

array – The array index – The index of the int you want to get

Returns:

The value as a int

static getLength(*args)[source]

Returns the length of the specified array object, as an int

Signature:getLength (Object array)
Parameters:array (Object) – The array
Returns:The length of the array
Return type:int
static getLong(*args)[source]

Returns the value of the indexed component in the specified array object, as a long

Signatures:

static long getLong(Object array, int index)

Argumnts:

array – The array index – The index of the long you want to get

Returns:

The value as a long

static getShort(*args)[source]

Returns the value of the indexed component in the specified array object, as a short

Signatures:

static short getShort(Object array, int index)

Argumnts:

array – The array index – The index of the short you want to get

Returns:

The value as a short

static set(*args)[source]

Sets the vlaue of the indexed component of the specified array object ot the specified new value

Signature:

set (Object array, int index, Object value)

Parameters:
  • array (Object) – The array
  • index (int) – Where you want to put the object
  • value (Object) – The object you want to put in the array
static setBoolean(*args)[source]

Sets the value of the indexed component of the specified array object to the specified boolean value

Signature:

setBoolean (Object array, int index, boolean v)

Parameters:
  • array (Object) – The array
  • index (int) – Where you want to put the boolean
  • value – The boolean value
static setByte(*args)[source]

Sets the value of the indexed component of the specified array object to the specified byte value

Signature:

setByte (Object array, int index, byte v)

Parameters:
  • array (Object) – The array
  • index (int) – Where you want to put the byte
  • value – The byte value
static setDouble(*args)[source]

Sets the value of the indexed component of the specified array object to the specified double value

Signature:

setDouble (Object array, int index, double v)

Parameters:
  • array (Object) – The array
  • index (int) – Where you want to put the double
  • value – The double value
static setFloat(*args)[source]

Sets the value of the indexed component of the specified array object to the specified float value

Signature:

setFloat (Object array, int index, float v)

Parameters:
  • array (Object) – The array
  • index (int) – Where you want to put the float
  • value – The float value
static setInt(*args)[source]

Sets the value of the indexed component of the specified array object to the specified int value

Signature:

setInt (Object array, int index, int v)

Parameters:
  • array (Object) – The array
  • index (int) – Where you want to put the int
  • value – The int value
static setLong(*args)[source]

Sets the value of the indexed component of the specified array object to the specified long value

Signature:

setLong (Object array, int index, long v)

Parameters:
  • array (Object) – The array
  • index (int) – Where you want to put the long
  • value – The long value

Module contents

Table Of Contents

Previous topic

TASSELpy.java.lang package

This Page