Package com.google.common.testing
Enum NullPointerTester.Visibility
- java.lang.Object
-
- java.lang.Enum<NullPointerTester.Visibility>
-
- com.google.common.testing.NullPointerTester.Visibility
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<NullPointerTester.Visibility>
- Enclosing class:
- NullPointerTester
public static enum NullPointerTester.Visibility extends java.lang.Enum<NullPointerTester.Visibility>
Visibility of any method or constructor.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateVisibility()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) java.lang.Iterable<java.lang.reflect.Method>getInstanceMethods(java.lang.Class<?> cls)(package private) java.lang.Iterable<java.lang.reflect.Method>getStaticMethods(java.lang.Class<?> cls)private ImmutableList<java.lang.reflect.Method>getVisibleMethods(java.lang.Class<?> cls)(package private) abstract booleanisVisible(int modifiers)(package private) booleanisVisible(java.lang.reflect.Member member)Returnstrueifmemberis visible underthisvisibility.static NullPointerTester.VisibilityvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static NullPointerTester.Visibility[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PACKAGE
public static final NullPointerTester.Visibility PACKAGE
-
PROTECTED
public static final NullPointerTester.Visibility PROTECTED
-
PUBLIC
public static final NullPointerTester.Visibility PUBLIC
-
-
Method Detail
-
values
public static NullPointerTester.Visibility[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (NullPointerTester.Visibility c : NullPointerTester.Visibility.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NullPointerTester.Visibility valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
isVisible
abstract boolean isVisible(int modifiers)
-
isVisible
final boolean isVisible(java.lang.reflect.Member member)
Returnstrueifmemberis visible underthisvisibility.
-
getStaticMethods
final java.lang.Iterable<java.lang.reflect.Method> getStaticMethods(java.lang.Class<?> cls)
-
getInstanceMethods
final java.lang.Iterable<java.lang.reflect.Method> getInstanceMethods(java.lang.Class<?> cls)
-
getVisibleMethods
private ImmutableList<java.lang.reflect.Method> getVisibleMethods(java.lang.Class<?> cls)
-
-