Package org.sonar.php.api
Enum PHPKeyword
- java.lang.Object
-
- java.lang.Enum<PHPKeyword>
-
- org.sonar.php.api.PHPKeyword
-
- All Implemented Interfaces:
com.sonar.sslr.api.AstNodeType,Serializable,Comparable<PHPKeyword>,org.sonar.sslr.grammar.GrammarRuleKey
public enum PHPKeyword extends Enum<PHPKeyword> implements org.sonar.sslr.grammar.GrammarRuleKey
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABSTRACTANDARRAYASBREAKCALLABLECASECATCHCLASSCLONECONSTCONTINUEDECLAREDEFAULTDIEDOECHOELSEELSEIFEMPTYENDDECLAREENDFORENDFOREACHENDIFENDSWITCHENDWHILEEVALEXITEXTENDSFINALFINALLYFNFORFOREACHFUNCTIONGLOBALGOTOHALT_COMPILERIFIMPLEMENTSINCLUDEINCLUDE_ONCEINSTANCEOFINSTEADOFINTERFACEISSETLISTMATCHNAMESPACENEWORPRINTPRIVATEPROTECTEDPUBLICREQUIREREQUIRE_ONCERETURNSTATICSWITCHTHROWTRAITTRYUNSETUSEVARWHILEXORYIELD
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String[]getKeywordValues()StringgetValue()static PHPKeywordvalueOf(String name)Returns the enum constant of this type with the specified name.static PHPKeyword[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HALT_COMPILER
public static final PHPKeyword HALT_COMPILER
-
ABSTRACT
public static final PHPKeyword ABSTRACT
-
AND
public static final PHPKeyword AND
-
ARRAY
public static final PHPKeyword ARRAY
-
AS
public static final PHPKeyword AS
-
BREAK
public static final PHPKeyword BREAK
-
CALLABLE
public static final PHPKeyword CALLABLE
-
CASE
public static final PHPKeyword CASE
-
CATCH
public static final PHPKeyword CATCH
-
CLASS
public static final PHPKeyword CLASS
-
CLONE
public static final PHPKeyword CLONE
-
CONST
public static final PHPKeyword CONST
-
CONTINUE
public static final PHPKeyword CONTINUE
-
DECLARE
public static final PHPKeyword DECLARE
-
DEFAULT
public static final PHPKeyword DEFAULT
-
DIE
public static final PHPKeyword DIE
-
DO
public static final PHPKeyword DO
-
ECHO
public static final PHPKeyword ECHO
-
ELSEIF
public static final PHPKeyword ELSEIF
-
ELSE
public static final PHPKeyword ELSE
-
EMPTY
public static final PHPKeyword EMPTY
-
ENDDECLARE
public static final PHPKeyword ENDDECLARE
-
ENDFOREACH
public static final PHPKeyword ENDFOREACH
-
ENDFOR
public static final PHPKeyword ENDFOR
-
ENDIF
public static final PHPKeyword ENDIF
-
ENDSWITCH
public static final PHPKeyword ENDSWITCH
-
ENDWHILE
public static final PHPKeyword ENDWHILE
-
EVAL
public static final PHPKeyword EVAL
-
EXIT
public static final PHPKeyword EXIT
-
EXTENDS
public static final PHPKeyword EXTENDS
-
FINALLY
public static final PHPKeyword FINALLY
-
FINAL
public static final PHPKeyword FINAL
-
FN
public static final PHPKeyword FN
-
FOREACH
public static final PHPKeyword FOREACH
-
FOR
public static final PHPKeyword FOR
-
FUNCTION
public static final PHPKeyword FUNCTION
-
GLOBAL
public static final PHPKeyword GLOBAL
-
GOTO
public static final PHPKeyword GOTO
-
IF
public static final PHPKeyword IF
-
IMPLEMENTS
public static final PHPKeyword IMPLEMENTS
-
INCLUDE_ONCE
public static final PHPKeyword INCLUDE_ONCE
-
INCLUDE
public static final PHPKeyword INCLUDE
-
INSTANCEOF
public static final PHPKeyword INSTANCEOF
-
INSTEADOF
public static final PHPKeyword INSTEADOF
-
INTERFACE
public static final PHPKeyword INTERFACE
-
ISSET
public static final PHPKeyword ISSET
-
LIST
public static final PHPKeyword LIST
-
MATCH
public static final PHPKeyword MATCH
-
NAMESPACE
public static final PHPKeyword NAMESPACE
-
NEW
public static final PHPKeyword NEW
-
OR
public static final PHPKeyword OR
-
PRINT
public static final PHPKeyword PRINT
-
PRIVATE
public static final PHPKeyword PRIVATE
-
PROTECTED
public static final PHPKeyword PROTECTED
-
PUBLIC
public static final PHPKeyword PUBLIC
-
REQUIRE_ONCE
public static final PHPKeyword REQUIRE_ONCE
-
REQUIRE
public static final PHPKeyword REQUIRE
-
RETURN
public static final PHPKeyword RETURN
-
STATIC
public static final PHPKeyword STATIC
-
SWITCH
public static final PHPKeyword SWITCH
-
THROW
public static final PHPKeyword THROW
-
TRAIT
public static final PHPKeyword TRAIT
-
TRY
public static final PHPKeyword TRY
-
UNSET
public static final PHPKeyword UNSET
-
USE
public static final PHPKeyword USE
-
VAR
public static final PHPKeyword VAR
-
WHILE
public static final PHPKeyword WHILE
-
XOR
public static final PHPKeyword XOR
-
YIELD
public static final PHPKeyword YIELD
-
-
Method Detail
-
values
public static PHPKeyword[] 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 (PHPKeyword c : PHPKeyword.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PHPKeyword 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
-
getValue
public String getValue()
-
getKeywordValues
public static String[] getKeywordValues()
-
-