Enum Class TypeReferenceKind
- All Implemented Interfaces:
StructConverter,Serializable,Comparable<TypeReferenceKind>,Constable
Swift
TypeReferenceKind 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 ConstantDescription -
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 TypeReferenceKindvalueOf(int value) Returns theTypeReferenceKindwith the given kind value, ornullif it does not exist.static TypeReferenceKindReturns the enum constant of this class with the specified name.static TypeReferenceKind[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DirectTypeDescriptor
-
IndirectTypeDescriptor
-
DirectObjCClassName
-
IndirectObjCClass
-
-
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 theTypeReferenceKindwith the given kind value, ornullif it does not exist.- Parameters:
value- The kind value to get the value of- Returns:
- the
TypeReferenceKindwith 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:
-