Class VariantEntry
This is a foreign class that wraps over an enum variant.
public define enum_id: Integer
Return the id of the enum parent of this variant.
public define enum_name: String
Return the name of the enum parent of this variant.
public define is_empty: Boolean
Returns true if the variant is empty, false otherwise. Empty variants are variants that do not receive any values.
public define is_scoped: Boolean
Returns true if the variant is scoped, false otherwise. A variant is scoped if the enum was prefixed with 'scoped' during declarations. Scoped variants must be qualified with their names to be used, whereas flat variants are directly available.
public define name: String
Return the name of the variant provided.
public define parameters: List[ParameterEntry]
Return the parameters of this variant, or []
if this variant does not
take parameters. Since variants do not accept parameter names, the name
is always ""
.
public define type: TypeEntry
Return the type of the method provided.