@Beta public enum JavaRestrictedKeyword extends Enum<JavaRestrictedKeyword> implements org.sonar.sslr.grammar.GrammarRuleKey
Enum Constant and Description |
---|
EXPORTS |
MODULE |
OPEN |
OPENS |
PROVIDES |
REQUIRES |
TO |
TRANSITIVE |
USES |
WITH |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
String |
getValue() |
static String[] |
restrictedKeywordValues()
Restricted keywords as String.
|
static JavaRestrictedKeyword |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JavaRestrictedKeyword[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JavaRestrictedKeyword OPEN
public static final JavaRestrictedKeyword MODULE
public static final JavaRestrictedKeyword REQUIRES
public static final JavaRestrictedKeyword TRANSITIVE
public static final JavaRestrictedKeyword EXPORTS
public static final JavaRestrictedKeyword OPENS
public static final JavaRestrictedKeyword TO
public static final JavaRestrictedKeyword USES
public static final JavaRestrictedKeyword PROVIDES
public static final JavaRestrictedKeyword WITH
public static JavaRestrictedKeyword[] values()
for (JavaRestrictedKeyword c : JavaRestrictedKeyword.values()) System.out.println(c);
public static JavaRestrictedKeyword valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getName()
public String getValue()
public static String[] restrictedKeywordValues()
Copyright © 2012–2017 SonarSource. All rights reserved.