Enum Class ModelicaClassSpecialization
java.lang.Object
java.lang.Enum<ModelicaClassSpecialization>
net.sourceforge.pmd.lang.modelica.resolver.ModelicaClassSpecialization
- All Implemented Interfaces:
Serializable,Comparable<ModelicaClassSpecialization>,Constable
Enumerates "specialized kinds of classes" (package, model, connector, etc.) that define
some restrictions and enhancements on what can be defined inside and how can they be used.
See "4.6 Specialized classes" from MLS 3.4
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic ModelicaClassSpecializationgetFunctionSpecialization(boolean isPure, boolean isOperator) toString()static ModelicaClassSpecializationReturns the enum constant of this class with the specified name.static ModelicaClassSpecialization[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CLASS
-
MODEL
-
RECORD
-
OPERATOR_RECORD
-
BLOCK
-
CONNECTOR
-
EXPANDABLE_CONNECTOR
-
TYPE
-
PACKAGE
-
FUNCTION
-
PURE_FUNCTION
-
OPERATOR_FUNCTION
-
PURE_OPERATOR_FUNCTION
-
OPERATOR
-
-
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
-
getFunctionSpecialization
public static ModelicaClassSpecialization getFunctionSpecialization(boolean isPure, boolean isOperator) -
toString
- Overrides:
toStringin classEnum<ModelicaClassSpecialization>
-