3.3.5. getType()

int getType

Returns the node type. The following types are allowed:

  1. OPT_ROOT - template tree root.
  2. OPT_TEXT - static text.
  3. OPT_INSTRUCTION - instruction node.
  4. OPT_EXPRESSION - expression node.
  5. OPT_COMPONENT - component node.
  6. OPT_ATTRIBUTE - OPT attribute.
  7. OPT_UNKNOWN - any other node. The instruction programmer decides, how to parse it.