Record Class TypeDef
java.lang.Object
java.lang.Record
net.codecrete.windowsapi.winmd.tables.TypeDef
- Record Components:
typeAttributes- type attributestypeName- type name (string index)typeNamespace- type namespace (string index)extendsType- type extended by this instance (TypeDefOrRef coded index)firstField- first field (Field index)firstMethod- first method (Method index)
public record TypeDef(int typeAttributes, int typeName, int typeNamespace, int extendsType, int firstField, int firstMethod)
extends Record
Row of the "TypeAlias" table.
See ECMA-335, II.22.37 TypeAlias
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionTypeDef(int typeAttributes, int typeName, int typeNamespace, int extendsType, int firstField, int firstMethod) Creates an instance of aTypeDefrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intReturns the value of theextendsTyperecord component.Coded index of the extended type (TypeDefOrRef).intReturns the value of thefirstFieldrecord component.intReturns the value of thefirstMethodrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.intReturns the value of thetypeAttributesrecord component.inttypeName()Returns the value of thetypeNamerecord component.intReturns the value of thetypeNamespacerecord component.
-
Field Details
-
VISIBILITY_MASK
public static final int VISIBILITY_MASK- See Also:
-
VISIBILITY_PUBLIC
public static final int VISIBILITY_PUBLIC- See Also:
-
VISIBILITY_NESTED_PUBLIC
public static final int VISIBILITY_NESTED_PUBLIC- See Also:
-
LAYOUT_MASK
public static final int LAYOUT_MASK- See Also:
-
LAYOUT_SEQUENTIAL
public static final int LAYOUT_SEQUENTIAL- See Also:
-
LAYOUT_EXPLICIT
public static final int LAYOUT_EXPLICIT- See Also:
-
CLASS_SEMANTICS_MASK
public static final int CLASS_SEMANTICS_MASK- See Also:
-
CLASS_SEMANTICS_CLASS
public static final int CLASS_SEMANTICS_CLASS- See Also:
-
CLASS_SEMANTICS_INTERFACE
public static final int CLASS_SEMANTICS_INTERFACE- See Also:
-
ABSTRACT
public static final int ABSTRACT- See Also:
-
-
Constructor Details
-
TypeDef
public TypeDef(int typeAttributes, int typeName, int typeNamespace, int extendsType, int firstField, int firstMethod) Creates an instance of aTypeDefrecord class.- Parameters:
typeAttributes- the value for thetypeAttributesrecord componenttypeName- the value for thetypeNamerecord componenttypeNamespace- the value for thetypeNamespacerecord componentextendsType- the value for theextendsTyperecord componentfirstField- the value for thefirstFieldrecord componentfirstMethod- the value for thefirstMethodrecord component
-
-
Method Details
-
extendsTypeIndex
Coded index of the extended type (TypeDefOrRef).- Returns:
- coded index
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
typeAttributes
public int typeAttributes()Returns the value of thetypeAttributesrecord component.- Returns:
- the value of the
typeAttributesrecord component
-
typeName
-
typeNamespace
public int typeNamespace()Returns the value of thetypeNamespacerecord component.- Returns:
- the value of the
typeNamespacerecord component
-
extendsType
public int extendsType()Returns the value of theextendsTyperecord component.- Returns:
- the value of the
extendsTyperecord component
-
firstField
public int firstField()Returns the value of thefirstFieldrecord component.- Returns:
- the value of the
firstFieldrecord component
-
firstMethod
public int firstMethod()Returns the value of thefirstMethodrecord component.- Returns:
- the value of the
firstMethodrecord component
-