Class AbstractTypesCtx

  • All Implemented Interfaces:
    DataContext

    public abstract class AbstractTypesCtx
    extends java.lang.Object
    implements DataContext
    • Constructor Detail

      • AbstractTypesCtx

        public AbstractTypesCtx()
    • Method Detail

      • registerNamedDef

        public void registerNamedDef​(java.lang.String name,
                                     AnonStructSeg seg)
      • getNamedDef

        public AnonStructSeg getNamedDef​(java.lang.String name)
        Description copied from interface: DataContext
        Look up a named type for use expanding a stub definition or to apply to a different context.
        Specified by:
        getNamedDef in interface DataContext
      • getTypeByName

        public StructDef getTypeByName​(java.lang.String typeName)
        Description copied from interface: DataContext
        Look up a named type for use constructing nested elements of a structure.
        Specified by:
        getTypeByName in interface DataContext
        Parameters:
        typeName - The type name to look up in the predefined names.
        Returns:
        The type suitable for use with CipStruct and/or StructMember.
      • getNames

        public java.util.List<java.lang.String> getNames()
      • getTypeByCRC

        public java.lang.String getTypeByCRC​(int crc)
        Description copied from interface: DataContext
        Look up a named type by CRC for use directly by a StructureDefSeg or indirectly by an AnonTypeSeg.
        Specified by:
        getTypeByCRC in interface DataContext
        Returns:
        The type suitable for use with CipStruct and/or StructMember.