Class JvmEnum
- Namespace
- TypedRest.CodeGeneration.Jvm.Model
- Assembly
- TypedRest.CodeGeneration.Jvm.dll
A generated enum.
public sealed class JvmEnum : IJvmType
- Inheritance
-
objectJvmEnum
- Implements
Constructors
JvmEnum(JvmIdentifier)
A generated enum.
public JvmEnum(JvmIdentifier identifier)
Parameters
identifierJvmIdentifierThe name of the type and the package it is declared in.
Properties
Deprecated
Marks the type as deprecated.
public bool Deprecated { get; set; }
Property Value
Identifier
The name of the type and the package it is declared in.
public JvmIdentifier Identifier { get; }
Property Value
Summary
A description of the type for a JavaDoc/KDoc comment.
public string? Summary { get; set; }
Property Value
Values
The values of the enum.
public List<JvmEnumValue> Values { get; }
Property Value
Methods
GetImports()
Returns every type that has to be imported by the file declaring this type.
public IEnumerable<JvmIdentifier> GetImports()