Enum JavaSignature.Visibility
- java.lang.Object
-
- java.lang.Enum<JavaSignature.Visibility>
-
- net.sourceforge.pmd.lang.java.multifile.signature.JavaSignature.Visibility
-
- All Implemented Interfaces:
Serializable
,Comparable<JavaSignature.Visibility>
- Enclosing class:
- JavaSignature<N extends SignedNode<N>>
public static enum JavaSignature.Visibility extends Enum<JavaSignature.Visibility>
The visibility of a node.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JavaSignature.Visibility
get(AccessNode node)
Returns the Visibility enum key for a node.static JavaSignature.Visibility
valueOf(String name)
Returns the enum constant of this type with the specified name.static JavaSignature.Visibility[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PUBLIC
public static final JavaSignature.Visibility PUBLIC
-
PACKAGE
public static final JavaSignature.Visibility PACKAGE
-
PROTECTED
public static final JavaSignature.Visibility PROTECTED
-
PRIVATE
public static final JavaSignature.Visibility PRIVATE
-
-
Method Detail
-
values
public static JavaSignature.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 (JavaSignature.Visibility c : JavaSignature.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 JavaSignature.Visibility valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
get
public static JavaSignature.Visibility get(AccessNode node)
Returns the Visibility enum key for a node.- Parameters:
node
- A node- Returns:
- The visibility enum key for a node
-
-