TASSELpy.java.lang package

Submodules

TASSELpy.java.lang.Boolean module

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

Bases: TASSELpy.java.lang.Comparable.Comparable, TASSELpy.java.lang.Object.Object

public final class Boolean extends Object implements Serializable, Comparable<Boolean> The Boolean class wraps a value of the primitive type boolean in an object. An object of type Boolean contains a single field whose type is boolean.

In addition, this class provides many methods for converting a boolean to a String and a String to a boolean, as well as other constants and methods useful when dealing with a boolean.

Methods

castTo(pyType) Casts this object to another java/python type
clone(*args) Creates and returns a copy of this object
compareTo(*args, **kwargs) Compares this object with the specified object for order.
equals(*args) Indicates whether some other object is “equal to” this one
getArray(size) Gets an empty wrapped java array that can accept the type of the wrapped
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.
hashCode(*args) Returns a hash code vlaue for the object
toString(*args) Returns a string representation of the object
wrap_existing_array(arr_instance) Wraps a java array of this class’s type
__init__(*args, **kwargs)[source]

Instantiates a Boolean object

Signature:

Boolean (boolean value)

Signature:

Boolean (String s)

Parameters:
  • value (boolean) – a boolean value
  • s (String) – the string to be converted to a Boolean
static compareTo(*args, **kwargs)[source]

Compares this object with the specified object for order. Returns negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

Signature:compareTo (T o)
Parameters:o (T) – the object to be compared
Returns:A negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object
Return type:int
class TASSELpy.java.lang.Boolean.metaBoolean[source]

Bases: object

TASSELpy.java.lang.Byte module

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

Bases: TASSELpy.java.lang.Comparable.Comparable, TASSELpy.java.lang.Number.Number

public final class Byte extends Number implements Comparable<Byte>

The Byte class wraps a value of primitive type byte in an object. An object of type Byte contains a single field whose type is byte.

In addition, this class provides several methods for converting a byte to a String and a String to a byte, as well as other constants and methods useful when dealing with a byte.

Methods

byteValue(*args) Returns the value of the specified number as a byte
castTo(pyType) Casts this object to another java/python type
clone(*args) Creates and returns a copy of this object
compareTo(*args, **kwargs) Compares this object with the specified object for order.
doubleValue(*args) Returns the value of the specified number as a double
equals(*args) Indicates whether some other object is “equal to” this one
floatValue(*args) Returns the value of the specified number as a float
getArray(size) Gets an empty wrapped java array that can accept the type of the wrapped
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.
hashCode(*args) Returns a hash code vlaue for the object
intValue(*args) Returns the value of the specified number as a int
longValue(*args) Returns the value of the specified number as a long
shortValue(*args) Returns the value of the specified number as a short
toPrimative(*args, **kwargs) Returns the primative value (a numpy type) for this object
toString(*args) Returns a string representation of the object
wrap_existing_array(arr_instance) Wraps a java array of this class’s type
__init__(*args, **kwargs)[source]

Instantiates a Byte object

Signature:

Byte (byte value)

Signature:

Byte (String s)

Parameters:
  • value (byte) – a byte value
  • s (String) – the string to be converted to a Byte
static compareTo(*args, **kwargs)[source]

Compares this object with the specified object for order. Returns negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

Signature:compareTo (T o)
Parameters:o (T) – the object to be compared
Returns:A negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object
Return type:int
static toPrimative(*args, **kwargs)[source]

Returns the primative value (a numpy type) for this object

Returns:

The numpy type for this object

class TASSELpy.java.lang.Byte.metaByte[source]

Bases: object

TASSELpy.java.lang.Class module

TASSELpy.java.lang.Comparable module

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

Bases: TASSELpy.javaObj.genericJavaObj, TASSELpy.java.lang.Object.Object

This interface imposes a total ordering on the objects of each class that implements it. This ordering is referred to as the class’s natural ordering, and the class’s compareTo method is referred to as its natural comparison method. Lists (and arrays) of objects that implement this interface can be sorted automatically by Collections.sort (and Arrays.sort). Objects that implement this interface can be used as keys in a sorted map or as elements in a sorted set, without the need to specify a comparator.

The natural ordering for a class C is said to be consistent with equals if and only if e1.compareTo(e2) == 0 has the same boolean value as e1.equals(e2) for every e1 and e2 of class C. Note that null is not an instance of any class, and e.compareTo(null) should throw a NullPointerException even though e.equals(null) returns false.

It is strongly recommended (though not required) that natural orderings be consistent with equals. This is so because sorted sets (and sorted maps) without explicit comparators behave “strangely” when they are used with elements (or keys) whose natural ordering is inconsistent with equals. In particular, such a sorted set (or sorted map) violates the general contract for set (or map), which is defined in terms of the equals method.

For example, if one adds two keys a and b such that (!a.equals(b) && a.compareTo(b) == 0) to a sorted set that does not use an explicit comparator, the second add operation returns false (and the size of the sorted set does not increase) because a and b are equivalent from the sorted set’s perspective.

Virtually all Java core classes that implement Comparable have natural orderings that are consistent with equals. One exception is java.math.BigDecimal, whose natural ordering equates BigDecimal objects with equal values and different precisions (such as 4.0 and 4.00).

For the mathematically inclined, the relation that defines the natural ordering on a given class C is:

{(x, y) such that x.compareTo(y) <= 0}.
The quotient for this total order is:
{(x, y) such that x.compareTo(y) == 0}.
It follows immediately from the contract for compareTo that the quotient is an equivalence relation on C, and that the natural ordering is a total order on C. When we say that a class’s natural ordering is consistent with equals, we mean that the quotient for the natural ordering is the equivalence relation defined by the class’s equals(Object) method:
{(x, y) such that x.equals(y)}.

Methods

castTo(pyType) Casts this object to another java/python type
clone(*args) Creates and returns a copy of this object
compareTo(*args) Compares this object with the specified object for order.
equals(*args) Indicates whether some other object is “equal to” this one
getArray(size) Gets an empty wrapped java array that can accept the type of the wrapped
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.
hashCode(*args) Returns a hash code vlaue for the object
toString(*args) Returns a string representation of the object
wrap_existing_array(arr_instance) Wraps a java array of this class’s type
__init__(*args, **kwargs)[source]
compareTo(*args)[source]

Compares this object with the specified object for order. Returns negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

Signature:compareTo (T o)
Parameters:o (T) – the object to be compared
Returns:A negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object
Return type:int

TASSELpy.java.lang.Double module

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

Bases: TASSELpy.java.lang.Comparable.Comparable, TASSELpy.java.lang.Number.Number

public final class Double extends Number implements Comparable<Double>

The Double class wraps a value of primitive type double in an object. An object of type Double contains a single field whose type is double.

In addition, this class provides several methods for converting a double to a String and a String to a double, as well as other constants and methods useful when dealing with a double.

Methods

byteValue(*args) Returns the value of the specified number as a byte
castTo(pyType) Casts this object to another java/python type
clone(*args) Creates and returns a copy of this object
compareTo(*args)
doubleValue(*args) Returns the value of the specified number as a double
equals(*args) Indicates whether some other object is “equal to” this one
floatValue(*args) Returns the value of the specified number as a float
getArray(size) Gets an empty wrapped java array that can accept the type of the wrapped
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.
hashCode(*args) Returns a hash code vlaue for the object
intValue(*args) Returns the value of the specified number as a int
longValue(*args) Returns the value of the specified number as a long
shortValue(*args) Returns the value of the specified number as a short
toPrimative(*args, **kwargs) Returns the primative value (a numpy type) for this object
toString(*args) Returns a string representation of the object
wrap_existing_array(arr_instance) Wraps a java array of this class’s type
__init__(*args, **kwargs)[source]

Instantiates a Double object

Signature:

Double (double value)

Signature:

Double (String s)

Parameters:
  • value (double) – A double value
  • s (String) – The string to be converted to a Double
compareTo(*args)[source]
static toPrimative(*args, **kwargs)[source]

Returns the primative value (a numpy type) for this object

Returns:

The numpy type for this object

class TASSELpy.java.lang.Double.metaDouble[source]

Bases: object

TASSELpy.java.lang.Enum module

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

Bases: TASSELpy.java.lang.Object.Object

This is the common base class of all Java language enumeration types.

Methods

castTo(pyType) Casts this object to another java/python type
clone(*args) Creates and returns a copy of this object
compareTo(*args) Compares this enum with the specified object for order
equals(*args) Returns true if the specified object is equal to this enum constant
getArray(size) Gets an empty wrapped java array that can accept the type of the wrapped
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.
hashCode(*args) Returns a hash code vlaue for the object
name(*args) Returns the name of this enum constant, exactly as declared
ordinal(*args) Returns the ordinal of this enumeration constant (its position in
toString(*args) Returns the name of this enum constant, as contained in the
wrap_existing_array(arr_instance) Wraps a java array of this class’s type
__init__(*args, **kwargs)[source]

Instantiates the common base class of all Java language enumeration types.

There is no explicit constructor. Only an object can be pass in

compareTo(*args)[source]

Compares this enum with the specified object for order

Signature:compareTo (Enum o)
equals(*args)[source]

Returns true if the specified object is equal to this enum constant

Signature:equals (Object other)
Parameters:other (Object) – the object you want to test for equality
Returns:Whether object is equal to enum constant
Return type:boolean
name(*args)[source]

Returns the name of this enum constant, exactly as declared in its enum declaration

Signature:name ()
Returns:The name of this enum constant
Return type:String
ordinal(*args)[source]

Returns the ordinal of this enumeration constant (its position in its enum declaration, where the initial constant is assigned an ordinal of zero

Signature:ordinal ()
Returns:Ordinal of this enumeration constant
Return type:int
toString(*args)[source]

Returns the name of this enum constant, as contained in the declaration

Signature:toString ()
Returns:The name of this enum constant
Return type:String
class TASSELpy.java.lang.Enum.enum(enum_name, *args, **kwargs)[source]

Bases: object

Class used to declare wrapper enums like in Java

Example:

my_enum = enum(“path/to/MY_ENUM”,”FIRST”,”SECOND”,”THIRD”)

__init__(enum_name, *args, **kwargs)[source]

Instantiates an enum. Each constant becomes a class attribute that is an instance of the Enum class

Arguments:

enum_name – The path to the enum in Java (e.g. “path/to/class$MY_ENUM”) args – The constant names subclass – Optional name of subclass to given constant instances

class TASSELpy.java.lang.Enum.metaEnum[source]

Bases: object

TASSELpy.java.lang.Float module

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

Bases: TASSELpy.java.lang.Comparable.Comparable, TASSELpy.java.lang.Number.Number

public final class Float extends Number implements Comparable<Float>

The Float class wraps a value of primitive type float in an object. An object of type Float contains a single field whose type is float.

In addition, this class provides several methods for converting a float to a String and a String to a float, as well as other constants and methods useful when dealing with a float.

Methods

byteValue(*args) Returns the value of the specified number as a byte
castTo(pyType) Casts this object to another java/python type
clone(*args) Creates and returns a copy of this object
compareTo(*args, **kwargs) Compares this object with the specified object for order.
doubleValue(*args) Returns the value of the specified number as a double
equals(*args) Indicates whether some other object is “equal to” this one
floatValue(*args) Returns the value of the specified number as a float
getArray(size) Gets an empty wrapped java array that can accept the type of the wrapped
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.
hashCode(*args) Returns a hash code vlaue for the object
intValue(*args) Returns the value of the specified number as a int
longValue(*args) Returns the value of the specified number as a long
shortValue(*args) Returns the value of the specified number as a short
toPrimative(*args, **kwargs) Returns the primative value (a numpy type) for this object
toString(*args) Returns a string representation of the object
wrap_existing_array(arr_instance) Wraps a java array of this class’s type
__init__(*args, **kwargs)[source]

Instantiates a Float object

Signature:

Float (float value)

Signature:

Float (double value)

Signature:

Float (String s)

Parameters:
  • value (float) – A float value
  • s (String) – The string to be converted to a Float
static compareTo(*args, **kwargs)[source]

Compares this object with the specified object for order. Returns negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

Signature:compareTo (T o)
Parameters:o (T) – the object to be compared
Returns:A negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object
Return type:int
static toPrimative(*args, **kwargs)[source]

Returns the primative value (a numpy type) for this object

Returns:

The numpy type for this object

class TASSELpy.java.lang.Float.metaFloat[source]

Bases: object

TASSELpy.java.lang.Integer module

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

Bases: TASSELpy.java.lang.Comparable.Comparable, TASSELpy.java.lang.Number.Number

public final class Integer extends Number implements Comparable<Integer>

The Integer class wraps a value of primitive type int in an object. An object of type Integer contains a single field whose type is int.

In addition, this class provides several methods for converting a int to a String and a String to a int, as well as other constants and methods useful when dealing with a int.

Methods

byteValue(*args) Returns the value of the specified number as a byte
castTo(pyType) Casts this object to another java/python type
clone(*args) Creates and returns a copy of this object
compareTo(*args, **kwargs) Compares this object with the specified object for order.
doubleValue(*args) Returns the value of the specified number as a double
equals(*args) Indicates whether some other object is “equal to” this one
floatValue(*args) Returns the value of the specified number as a float
getArray(size) Gets an empty wrapped java array that can accept the type of the wrapped
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.
hashCode(*args) Returns a hash code vlaue for the object
intValue(*args) Returns the value of the specified number as a int
longValue(*args) Returns the value of the specified number as a long
shortValue(*args) Returns the value of the specified number as a short
toPrimative(*args, **kwargs) Returns the primative value (a numpy type) for this object
toString(*args) Returns a string representation of the object
wrap_existing_array(arr_instance) Wraps a java array of this class’s type
__init__(*args, **kwargs)[source]

Instantiates a Integer object

Signature:

Integer (int value)

Signature:

Integer (String s)

Parameters:
  • value (int) – a int value
  • s (String) – the string to be converted to a Integer
static compareTo(*args, **kwargs)[source]

Compares this object with the specified object for order. Returns negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

Signature:compareTo (T o)
Parameters:o (T) – the object to be compared
Returns:A negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object
Return type:int
static toPrimative(*args, **kwargs)[source]

Returns the primative value (a numpy type) for this object

Returns:

The numpy type for this object

class TASSELpy.java.lang.Integer.metaInteger[source]

Bases: object

TASSELpy.java.lang.Iterable module

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

Bases: TASSELpy.javaObj.genericJavaObj, TASSELpy.java.lang.Object.Object

Implementing this interface allows an object to be the target of the “foreach” statement

Signature: Iterable<T>

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
getArray(size) Gets an empty wrapped java array that can accept the type of the wrapped
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.
hashCode(*args) Returns a hash code vlaue for the object
iterator(*args) Returns an iterator over a set of elements of type T
toString(*args) Returns a string representation of the object
wrap_existing_array(arr_instance) Wraps a java array of this class’s type
__init__(*args, **kwargs)[source]
iterator(*args)[source]

Returns an iterator over a set of elements of type T

Signatures:

Iterator<T> iterator()

Returns:

An iterator

TASSELpy.java.lang.Long module

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

Bases: TASSELpy.java.lang.Comparable.Comparable, TASSELpy.java.lang.Number.Number

Wrapper class for java.lang.Long

Methods

byteValue(*args) Returns the value of the specified number as a byte
castTo(pyType) Casts this object to another java/python type
clone(*args) Creates and returns a copy of this object
compareTo(*args, **kwargs) Compares this object with the specified object for order.
doubleValue(*args) Returns the value of the specified number as a double
equals(*args) Indicates whether some other object is “equal to” this one
floatValue(*args) Returns the value of the specified number as a float
getArray(size) Gets an empty wrapped java array that can accept the type of the wrapped
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.
hashCode(*args) Returns a hash code vlaue for the object
intValue(*args) Returns the value of the specified number as a int
longValue(*args) Returns the value of the specified number as a long
shortValue(*args) Returns the value of the specified number as a short
toPrimative(*args, **kwargs) Returns the primative value (a numpy type) for this object
toString(*args) Returns a string representation of the object
wrap_existing_array(arr_instance) Wraps a java array of this class’s type
__init__(*args, **kwargs)[source]

Instantiates a new Long

Signature:

Long (long value)

Signature:

Long (String s)

Parameters:
  • value (long) – The long to wrap in the object Long (String s)
  • s (String) – The string representing the long
static compareTo(*args, **kwargs)[source]

Compares this object with the specified object for order. Returns negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

Signature:compareTo (T o)
Parameters:o (T) – the object to be compared
Returns:A negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object
Return type:int
static toPrimative(*args, **kwargs)[source]

Returns the primative value (a numpy type) for this object

Returns:

The numpy type for this object

class TASSELpy.java.lang.Long.metaLong[source]

Bases: object

TASSELpy.java.lang.Number module

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

Bases: TASSELpy.java.lang.Object.Object

The abstact class Number is the superclass of classes BigDecimal, BigInteger, Byte, Double, Float, Integer, Long, and Short

Subclasses of Number must provide methods to convert represented numeric value to byte, double float, int, long, and short

Methods

byteValue(*args) Returns the value of the specified number as a byte
castTo(pyType) Casts this object to another java/python type
clone(*args) Creates and returns a copy of this object
doubleValue(*args) Returns the value of the specified number as a double
equals(*args) Indicates whether some other object is “equal to” this one
floatValue(*args) Returns the value of the specified number as a float
getArray(size) Gets an empty wrapped java array that can accept the type of the wrapped
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.
hashCode(*args) Returns a hash code vlaue for the object
intValue(*args) Returns the value of the specified number as a int
longValue(*args) Returns the value of the specified number as a long
shortValue(*args) Returns the value of the specified number as a short
toPrimative() Returns the primative value (a numpy type) for this object
toString(*args) Returns a string representation of the object
wrap_existing_array(arr_instance) Wraps a java array of this class’s type
__init__(*args, **kwargs)[source]
byteValue(*args)[source]

Returns the value of the specified number as a byte

Signature:byteValue ()
Returns:The numeric value represented by this object after conversion to type byte
Return type:byte
doubleValue(*args)[source]

Returns the value of the specified number as a double

Signature:doubleValue ()
Returns:The numeric value represented by this object after conversion to type double
Return type:double
floatValue(*args)[source]

Returns the value of the specified number as a float

Signature:floatValue ()
Returns:The numeric value represented by this object after conversion to type float
Return type:float
intValue(*args)[source]

Returns the value of the specified number as a int

Signature:intValue ()
Returns:The numeric value represented by this object after conversion to type int
Return type:int
longValue(*args)[source]

Returns the value of the specified number as a long

Signature:longValue ()
Returns:The numeric value represented by this object after conversion to type long
Return type:long
shortValue(*args)[source]

Returns the value of the specified number as a short

Signature:shortValue ()
Returns:The numeric value represented by this object after conversion to type short
Return type:short
toPrimative()[source]

Returns the primative value (a numpy type) for this object

Returns:

The numpy type for this object

class TASSELpy.java.lang.Number.metaNumber[source]

Bases: object

TASSELpy.java.lang.Object module

class TASSELpy.java.lang.Object.Class(*args, **kwargs)[source]

Bases: TASSELpy.javaObj.genericJavaObj, TASSELpy.java.lang.Object.Object

public final class Class<T> extends Object implements Serializable, GenericDeclaration, Type, AnnotatedElement

Instances of the class Class represent classes and interfaces in a running Java application. An enum is a kind of class and an annotation is a kind of interface. Every array also belongs to a class that is reflected as a Class object that is shared by all arrays with the same element type and number of dimensions. The primitive Java types (boolean,

byte, char, short, int, long, float, and double), and the keyword void

are also represented as Class objects.

Class has no public constructor. Instead Class objects are constructed automatically by the Java Virtual Machine as classes are loaded and by calls to the defineClass method in the class loader.

Methods

cast(*args) Casts an object to the class or interface represented by this Class
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
getArray(size) Gets an empty wrapped java array that can accept the type of the wrapped
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.
getName(*args) Returns the name of the entity (class, interface, array class, primitive type, or void) represented by this Class object, as a String.
hashCode(*args) Returns a hash code vlaue for the object
isPrimitive(*args) Determines if the specified Class object represents a primitive type.
newInstance(*args) Creates a new instance of the class represented by this Class object.
toString(*args) Returns a string representation of the object
wrap_existing_array(arr_instance) Wraps a java array of this class’s type
__init__(*args, **kwargs)[source]

Instantiates a Class, with specification of bracketed type

cast(*args)[source]

Casts an object to the class or interface represented by this Class object

Signature:cast (Object obj)
Parameters:obj (Object) – the object to be cast
Returns:The object after casting, or null if the object is null
Return type:T
getName(*args)[source]

Returns the name of the entity (class, interface, array class, primitive type, or void) represented by this Class object, as a String. If this class object represents a class of arrays, then the internal form of the name consists of the name of the element type preceded by one or more ‘[‘ characters representing the depth of the array nesting.

Signature:getName ()
Returns:The name of the class or interface represented by this object
Return type:String
isPrimitive(*args)[source]

Determines if the specified Class object represents a primitive type.

Signature:isPrimitive ()
Returns:true if and only if this class represents a primitive type
Return type:boolean
newInstance(*args)[source]

Creates a new instance of the class represented by this Class object. The class is instantiated as if by a new expression with an empty argument list. The class is initialized if it has not already been initialized.

Signature:newInstance ()
Returns:A newly allocated instance of the class represented by this object
Return type:T
class TASSELpy.java.lang.Object.Object(*args, **kwargs)[source]

Bases: TASSELpy.javaObj.javaObj

Acts like Java.lang.Object

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
getArray(size) Gets an empty wrapped java array that can accept the type of the wrapped
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.
hashCode(*args) Returns a hash code vlaue for the object
toString(*args) Returns a string representation of the object
wrap_existing_array(arr_instance) Wraps a java array of this class’s type
__init__(*args, **kwargs)[source]

Instantiates a Java object

Signature:Object ()
castTo(pyType)[source]

Casts this object to another java/python type

Parameters:pyType : Python type inheriting from javaObj
Returns:The object as an instance of the new type (in both java and python)
clone(*args)[source]

Creates and returns a copy of this object

Signatures:

protected Object clone()

Returns:

A copy of this object

equals(*args)[source]

Indicates whether some other object is “equal to” this one

Signature:equals (Object obj)
Parameters:obj (Object) – The object you want to test for equality
Returns:true if equal
Return type:boolean
getClass(*args)[source]

Returns the runtime class of this Object.

Signatures:

final Class<?> getClass()

Returns:

The Class object that represents the runtime class of this object

hashCode(*args)[source]

Returns a hash code vlaue for the object

Signature:hashCode ()
Returns:Hash code value for this object
Return type:int
toString(*args)[source]

Returns a string representation of the object

Signature:toString ()
Returns:The string representaiton of the object
Return type:String

TASSELpy.java.lang.Runnable module

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

Bases: TASSELpy.javaObj.javaObj

public interface Runnable

The Runnable interface should be implemented by any class whose instances are intended to be executed by a thread. The class must define a method of no arguments called run.

This interface is designed to provide a common protocol for objects that wish to execute code while they are active. For example, Runnable is implemented by class Thread. Being active simply means that a thread has been started and has not yet been stopped.

In addition, Runnable provides the means for a class to be active while not subclassing Thread. A class that implements Runnable can run without subclassing Thread by instantiating a Thread instance and passing itself in as the target. In most cases, the Runnable interface should be used if you are only planning to override the run() method and no other Thread methods. This is important because classes should not be subclassed unless the programmer intends on modifying or enhancing the fundamental behavior of the class.

Methods

getArray(size) Gets an empty wrapped java array that can accept the type of the wrapped
getDblArray(rows[, cols]) Gets an empty wrapped java array that can accept the type of other wrapped java arrays: i.e.
run(*args) When an object implementing interface Runnable is used to create a thread, starting the
wrap_existing_array(arr_instance) Wraps a java array of this class’s type
__init__(*args, **kwargs)[source]
run(*args)[source]

When an object implementing interface Runnable is used to create a thread, starting the thread causes the object’s run method to be called in that separately executing thread The general contract of the method run is that it may take any action whatsoever

Signature:run ()

TASSELpy.java.lang.String module

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

Bases: TASSELpy.java.lang.Object.Object

Wrapper class for java.lang.String

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
getArray(size) Gets an empty wrapped java array that can accept the type of the wrapped
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 String arrays: i.e.
hashCode(*args) Returns a hash code vlaue for the object
make_array(length[, pyType]) Makes a wrapped java array for some java class
toString(*args) Returns a string representation of the object
wrap_existing_array(arr_instance) Wraps a java array of this class’s type
__init__(*args, **kwargs)[source]

Instantiates a new String

Signature:String ()
Signature:String (String original)
Parameters:original (String) – The string to copy over
classmethod getArray(size)[source]

Gets an empty wrapped java array that can accept the type of the wrapped java object

Arguments:

size – the size of the array

Returns:

An instance of the array of the given size

classmethod getDblArray(rows, cols=None)[source]

Gets an empty wrapped java array that can accept the type of other wrapped java String arrays: i.e. String[][]

Arguments:

rows – The number of rows that should be in the array (the first dimension) cols – The number of columns that should be in the array (if not specified, the

array objects will not be instantiated at these locations

Returns:

An instance of an array of arrays

static make_array(length, pyType=None)[source]

Makes a wrapped java array for some java class

Arguments:

length – The length of the array to make pyType – The type of the javaObj. This must be passed unless using a javaObj instance to make

the array

Returns:

The wrapped java array

classmethod wrap_existing_array(arr_instance)[source]

Wraps a java array of this class’s type

Arguments:

arr_instance – The java array

Returns:

The wrapped java array

class TASSELpy.java.lang.String.metaString[source]

Bases: object

TASSELpy.java.lang.Thread module

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

Bases: TASSELpy.java.lang.Object.Object, TASSELpy.java.lang.Runnable.Runnable

public class Thread extends Object implements Runnable

A thread is a thread of execution in a program. The Java Virtual Machine allows an application to have multiple threads of execution running concurrently.

Every thread has a priority. Threads with higher priority are executed in preference to threads with lower priority. Each thread may or may not also be marked as a daemon. When code running in some thread creates a new Thread object, the new thread has its priority initially set equal to the priority of the creating thread, and is a daemon thread if and only if the creating thread is a daemon.

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
getArray(size) Gets an empty wrapped java array that can accept the type of the wrapped
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.
hashCode(*args) Returns a hash code vlaue for the object
run(*args) When an object implementing interface Runnable is used to create a thread, starting the
toString(*args) Returns a string representation of the object
wrap_existing_array(arr_instance) Wraps a java array of this class’s type
__init__(*args, **kwargs)[source]

Constructs a new Thread

Signature:

Thread ()

Signature:

Thread (Runnable target)

Signature:

Thread (Runnable target, String name)

Signature:

Thread (String name)

Signature:

Thread (ThreadGroup group, Runnable target)

Signature:

Thread (ThreadGroup group, Runnable target, String name)

Signature:

Thread (ThreadGroup group, Runnable target, String name, long stackSize)

Signature:

Thread (ThreadGroup group, String name)

Parameters:
  • target (Runnable) – the object whose run method is invoked when this thread is started
  • name (String) – the name of the new thread
  • group (ThreadGroup) – The thread group
  • stackSize (long) – the desired stack size for the new thread, or zero to indicate this parameter

Module contents