Top Inners Constructors Methods
org.freedesktop.dbus.messages

pack-priv final Class EmptyCollectionHelper

extends Object
Class Inheritance
Imports
java.util.Arrays

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static enum
EmptyCollectionHelper.ECollectionSubType

Internal Enumeration used to group the types of element

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static EmptyCollectionHelper.ECollectionSubType
determineCollectionSubType(char
the signature letter of the type
_sig
)

The starting type determines of a collection determines when it ends

private static int
determineEndOfBracketStructure(byte[] _sigb, int _currentOffset, char _openChar, char _closeChar)

This is a generic function to determine the end of a structure that has opening and closing characters.

pack-priv static int

Returns:

the index of the last element of the collection (subtype)
determineSignatureOffsetArray
(byte[]
the total signature
_sigb
,
int
the current offset within the signature
_currentOffset
)

This function determine the new offset in signature for empty Array/List collections.

pack-priv static int

Returns:

the index of the last element of the collection (subtype)
determineSignatureOffsetDict
(byte[]
the total signature
_sigb
,
int
the current offset within the signature
_currentOffset
)

This function determine the new offset in signature for empty Dictionary/Map collections.

private static int
determineSignatureOffsetStruct(byte[] _sigb, int _currentOffset)

private static String
determineSubSignature(byte[] _sigb, int _currentOffset)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

EmptyCollectionHelperback to summary
private EmptyCollectionHelper()

Method Detail

determineCollectionSubTypeback to summary
private static EmptyCollectionHelper.ECollectionSubType determineCollectionSubType(char _sig)

The starting type determines of a collection determines when it ends

Parameters
_sig:char

the signature letter of the type

determineEndOfBracketStructureback to summary
private static int determineEndOfBracketStructure(byte[] _sigb, int _currentOffset, char _openChar, char _closeChar)

This is a generic function to determine the end of a structure that has opening and closing characters. Currently used for Struct () and Dict {}

determineSignatureOffsetArrayback to summary
pack-priv static int determineSignatureOffsetArray(byte[] _sigb, int _currentOffset)

This function determine the new offset in signature for empty Array/List collections. Normally the element inside a collection determines the new offset, however in case of empty collections there is no element to determine the sub signature of the list so this function determines which part of the signature to skip

Parameters
_sigb:byte[]

the total signature

_currentOffset:int

the current offset within the signature

Returns:int

the index of the last element of the collection (subtype)

determineSignatureOffsetDictback to summary
pack-priv static int determineSignatureOffsetDict(byte[] _sigb, int _currentOffset)

This function determine the new offset in signature for empty Dictionary/Map collections. Normally the element inside a collection determines the new offset, however in case of empty collections there is no element to determine the sub signature of the list so this function determines which part of the signature to skip

Parameters
_sigb:byte[]

the total signature

_currentOffset:int

the current offset within the signature

Returns:int

the index of the last element of the collection (subtype)

determineSignatureOffsetStructback to summary
private static int determineSignatureOffsetStruct(byte[] _sigb, int _currentOffset)
determineSubSignatureback to summary
private static String determineSubSignature(byte[] _sigb, int _currentOffset)
org.freedesktop.dbus.messages back to summary

pack-priv final Enum EmptyCollectionHelper.ECollectionSubType

extends Enum<EmptyCollectionHelper.ECollectionSubType>
Class Inheritance

Internal Enumeration used to group the types of element

Field Summary

Modifier and TypeField and Description
public static final EmptyCollectionHelper.ECollectionSubType
public static final EmptyCollectionHelper.ECollectionSubType
public static final EmptyCollectionHelper.ECollectionSubType
public static final EmptyCollectionHelper.ECollectionSubType

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static EmptyCollectionHelper.ECollectionSubType
public static EmptyCollectionHelper.ECollectionSubType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

ARRAYback to summary
public static final EmptyCollectionHelper.ECollectionSubType ARRAY
DICTback to summary
public static final EmptyCollectionHelper.ECollectionSubType DICT
PRIMITIVEback to summary
public static final EmptyCollectionHelper.ECollectionSubType PRIMITIVE
STRUCTback to summary
public static final EmptyCollectionHelper.ECollectionSubType STRUCT

Constructor Detail

ECollectionSubTypeback to summary
private ECollectionSubType()

Method Detail

valueOfback to summary
public static EmptyCollectionHelper.ECollectionSubType valueOf(String name)
valuesback to summary
public static EmptyCollectionHelper.ECollectionSubType[] values()