Skip to main content
Skip table of contents

Class Supplier

Overview

Provides information about object classes.

This supplier is disabled by default, and should generally not be turned on in a production environment. To control access, enable or disable the "Class Supplier" by going to  > Manage apps > Expand ServiceRocket Utility Library plugin > Expand "x of x modules enabled". Here you will find the suppliers that are not enabled by default.

See the Object Supplier's 'class' field to access class instances for use with this supplier.

Details

Name:

Class Supplier

Prefix:

class(required)

Supported Content:

Class objects

Provided By:

Reporting for Confluence

Supported Keys

The following are the list of keys which this supplier will return a value for.

Key
Content Types
Return Type
Description

name

Class

Text

The class name.

is primative

Class

Boolean

Is true if the class is a 'primative', such as int, boolean or float.

is interface

Class

Boolean

Is true if the class is an interface.

is enum

Class

Boolean

Is true if the class is an enum.

is array

Class

Boolean

Is true if the class represents an array of objects. Does not recognize 'Collection' objects.

component type

Class

Class

If this is an array, this is the class that makes up the contents of the array. For example a "int[]" would return the "int.class" type.

is anonymous class

Class

Boolean

Is true if the class is 'anonymous'. That is, it is an unnamed class assigned or returned from within a method.

is local class

Class

Boolean

Is true if the class is 'local'. That is, it is a named class defined within a method.

is member class

Class

Boolean

Is true if the class is defined inside another class.

superclass

Class

Class

The parent class of this one.

interfaces

Class

List of Classes

The list of interface classes directly implemented by this class. Does not include interfaces implemented by any superclasses.

package

Class

Text

The package name for this class.

Examples


JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.