Codemesh Runtime v3 C++ API Reference  3.9.205
Public Member Functions | Friends | List of all members
xmog_java_array_size Class Reference

The proxy type representing the length of an array. More...

#include <xmog_java_array.h>

Public Member Functions

XMOG_EXPLICIT xmog_java_array_size (xmog_java_array *owner, jint size=-1)
 The constructor taking an optional array length as input. More...
 
 operator jint () const
 A conversion operator to jint. More...
 
jint to_jint (xmog_localenv *env) const
 A higher performance alternative to the jint conversion operator. More...
 

Friends

class xmog_java_array
 

Detailed Description

The proxy type representing the length of an array.

This type is only used to represent length fields of proxy arrays.

Constructor & Destructor Documentation

◆ xmog_java_array_size()

XMOG_EXPLICIT xmog_java_array_size::xmog_java_array_size ( xmog_java_array owner,
jint  size = -1 
)

The constructor taking an optional array length as input.

Parameters
ownerthe array instance that owns the field.
sizethe array length. The default value is -1, which means that we don't have a pre-cached value for the array length.

Member Function Documentation

◆ operator jint()

xmog_java_array_size::operator jint ( ) const

A conversion operator to jint.

This function allows the length field to be used anywhere where a jint is expected.

◆ to_jint()

jint xmog_java_array_size::to_jint ( xmog_localenv env) const

A higher performance alternative to the jint conversion operator.

This function is synonymous to operator jint(), but it takes a local call environment as an argument.

Parameters
envthe local environment used in this call. This value may be NULL.

The documentation for this class was generated from the following file:

Copyright (c) 1999-2020 by Codemesh, Inc., ALL RIGHTS RESERVED.