Annotation Interface MachineParser


@Target(TYPE) @Retention(RUNTIME) @Documented public @interface MachineParser
Indicates the capabilities of a machine parser. It may be used to dynamically steer the code generation.
Author:
Holger Eichelberger, SSE
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Whether the machine connector supports hierarchical names (requires supportsNames().
    boolean
    Whether the parser supports index-based access (despite the interface).
    boolean
    Whether the machine connector supports hierarchical names (despite the interface).
    boolean
    Whether the machine connector supports stepping into nested structures (or emulates that).
  • Element Details

    • supportsIndexes

      boolean supportsIndexes
      Whether the parser supports index-based access (despite the interface).
      Returns:
      true for index-based access, false for name-based access
      Default:
      true
    • supportsNames

      boolean supportsNames
      Whether the machine connector supports hierarchical names (despite the interface).
      Returns:
      true for hierarchical names, false else
      Default:
      true
    • supportsHierarchicalNames

      boolean supportsHierarchicalNames
      Whether the machine connector supports hierarchical names (requires supportsNames().
      Returns:
      true for hierarchical names, false else
      Default:
      true
    • supportsNesting

      boolean supportsNesting
      Whether the machine connector supports stepping into nested structures (or emulates that).
      Returns:
      true for nesting, false else
      Default:
      true