Enum Class ContextDescriptorKind
- All Implemented Interfaces:
StructConverter,Serializable,Comparable<ContextDescriptorKind>,Constable
Swift
ContextDescriptorKind values- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThis context descriptor represents an anonymous possibly-generic context such as a function bodyThis context descriptor represents a classThis context descriptor represents an enumThis context descriptor represents an extensionThis context descriptor represents a moduleThis context descriptor represents an opaque type aliasThis context descriptor represents a protocol contextThis context descriptor represents a struct -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionintgetValue()Returns the kind value.Returns a structure datatype representing the contents of the implementor of this interface.static ContextDescriptorKindvalueOf(int value) Returns theContextDescriptorKindwith the given kind value, ornullif it does not exist.static ContextDescriptorKindReturns the enum constant of this class with the specified name.static ContextDescriptorKind[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Module
This context descriptor represents a module -
Extension
This context descriptor represents an extension -
Anonymous
This context descriptor represents an anonymous possibly-generic context such as a function body -
Protocol
This context descriptor represents a protocol context -
OpaqueType
This context descriptor represents an opaque type alias -
Class
This context descriptor represents a class -
Struct
This context descriptor represents a struct -
Enum
This context descriptor represents an enum
-
-
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
-
getValue
public int getValue()Returns the kind value.- Returns:
- the kind value
-
valueOf
Returns theContextDescriptorKindwith the given kind value, ornullif it does not exist.- Parameters:
value- The kind value to get the value of- Returns:
- the
ContextDescriptorKindwith the given kind value, ornullif it does not exist
-
toDataType
Description copied from interface:StructConverterReturns a structure datatype representing the contents of the implementor of this interface.For example, given:
class A { int foo; double bar; }The return value should be a structure data type with two data type components; an INT and a DOUBLE. The structure should contain field names and, if possible, field comments.
- Specified by:
toDataTypein interfaceStructConverter- Returns:
- returns a structure datatype representing the implementor of this interface
- Throws:
DuplicateNameException- when a datatype of the same name already existsIOException- if an IO-related error occurs- See Also:
-