Package com.github.tadukoo.java
Enum Class JavaCodeTypes
- All Implemented Interfaces:
Serializable,Comparable<JavaCodeTypes>,Constable
An enum for the various
JavaCodeTypes types of Java classes and elements.- Since:
- Beta v.0.5
- Version:
- Beta v.0.6
- Author:
- Logan Ferree (Tadukoo)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRepresents an import statement in Java
MainJavaCodeTypeclass:JavaImportStatement
Standard name: import statementRepresents a Multi-line Comment in Java
MainJavaCodeTypeclass:JavaMultiLineComment
Standard name: multi-line commentRepresents a package declaration in Java
MainJavaCodeTypeclass:JavaPackageDeclaration
Standard Name: package declarationRepresents a Single-line Comment in Java
MainJavaCodeTypeclass:JavaSingleLineComment
Standard name: single-line commentRepresents a static code block within a class
MainJavaCodeTypeclass:JavaStaticCodeBlock
Standard name: static code blockRepresents a type parameter in Java
MainJavaCodeTypeclass:JavaTypeParameter
Standard Name: type parameterRepresents a Java type with modifiers (e.g. field, method, class, interface)
MainJavaCodeTypeclass: None
Standard name: type with modifiers -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends JavaCodeType>static JavaCodeTypesReturns the enum constant of this class with the specified name.static JavaCodeTypes[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
-
TYPE_PARAMETER
Represents a type parameter in Java
MainJavaCodeTypeclass:JavaTypeParameter
Standard Name: type parameter -
TYPE
-
PARAMETER
-
PACKAGE_DECLARATION
Represents a package declaration in Java
MainJavaCodeTypeclass:JavaPackageDeclaration
Standard Name: package declaration -
IMPORT_STATEMENT
Represents an import statement in Java
MainJavaCodeTypeclass:JavaImportStatement
Standard name: import statement -
JAVADOC
-
MULTI_LINE_COMMENT
Represents a Multi-line Comment in Java
MainJavaCodeTypeclass:JavaMultiLineComment
Standard name: multi-line comment -
SINGLE_LINE_COMMENT
Represents a Single-line Comment in Java
MainJavaCodeTypeclass:JavaSingleLineComment
Standard name: single-line comment -
ANNOTATION
-
TYPE_WITH_MODIFIERS
Represents a Java type with modifiers (e.g. field, method, class, interface)
MainJavaCodeTypeclass: None
Standard name: type with modifiers -
FIELD
-
METHOD
-
CLASS
-
STATIC_CODE_BLOCK
Represents a static code block within a class
MainJavaCodeTypeclass:JavaStaticCodeBlock
Standard name: static code block
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getJavaTypeClass
- Returns:
- The main
JavaCodeTypeclass for the enum
-
getStandardName
- Returns:
- A standard name for the type
-