Enum ApexSignature.Visibility
- java.lang.Object
-
- java.lang.Enum<ApexSignature.Visibility>
-
- net.sourceforge.pmd.lang.apex.metrics.signature.ApexSignature.Visibility
-
- All Implemented Interfaces:
Serializable
,Comparable<ApexSignature.Visibility>
- Enclosing class:
- ApexSignature
public static enum ApexSignature.Visibility extends Enum<ApexSignature.Visibility>
Visibility of a field or method.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ApexSignature.Visibility
get(ASTMethod method)
Finds out the visibility of a method node.static ApexSignature.Visibility
valueOf(String name)
Returns the enum constant of this type with the specified name.static ApexSignature.Visibility[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PRIVATE
public static final ApexSignature.Visibility PRIVATE
-
PUBLIC
public static final ApexSignature.Visibility PUBLIC
-
PROTECTED
public static final ApexSignature.Visibility PROTECTED
-
GLOBAL
public static final ApexSignature.Visibility GLOBAL
-
-
Method Detail
-
values
public static ApexSignature.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 (ApexSignature.Visibility c : ApexSignature.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 ApexSignature.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 ApexSignature.Visibility get(ASTMethod method)
Finds out the visibility of a method node.- Parameters:
method
- The method node- Returns:
- The visibility of the method
-
-