Salesforce

Type Signatures (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

Type Signatures (Magic xpa 3.x)

The Java Native Interface uses the Java Virtual Machine’s definition of type signatures, as shown in the table below.

Type Signature

Java Type

Z

boolean

B

byte

C

char

S

short

I

int

J

long

F

float

D

double

L

fully qualified class

[type

type[ ]

(arg-types) ret-type

method type


For example, the Java method, long f (int n, String s, int[ ] arr) has the type signature, (ILjava/lang/String;[I)J

where:

int n - I

String s - Ljava/lang/String;

int[ ] arr - [ I

long f - J

The command line utility, javap -s <class name>, analyzes a class and lists the signatures of its methods and variables.

Reference
Attachment 
Attachment