Close

Java Reflection - Class.getSigners() Examples

Code Snippets Java Reflection Java 


Class:

java.lang.Class

java.lang.Objectjava.lang.Objectjava.lang.Classjava.lang.Classjava.io.SerializableSerializablejava.lang.reflect.GenericDeclarationGenericDeclarationjava.lang.reflect.TypeTypejava.lang.reflect.AnnotatedElementAnnotatedElementLogicBig

Method:

public Object[] getSigners()

Gets the signers of this class.

Returns:
Returns the signers of this class, or null if there are no signers. Returns null if this object represents a primitive type or void.


Examples


package com.logicbig.example.clazz;

import java.util.Arrays;

public class GetSignersExample {

public static void main(String... args) {
Class<GetSignersExample> c = GetSignersExample.class;
Object[] signers = c.getSigners();
System.out.println(Arrays.toString(signers));
}
}

Output

null




See Also