Class TermProduction

    • Constructor Detail

      • TermProduction

        public TermProduction()
        Creates a produced template term with no label and the default type
      • TermProduction

        public TermProduction​(java.lang.String label)
        Creates a produced template term with the default term type
      • TermProduction

        public TermProduction​(TermType termType)
        Creates a produced template term with no label
      • TermProduction

        public TermProduction​(java.lang.String label,
                              TermType termType)
    • Method Detail

      • getLabel

        public java.lang.String getLabel()
        Sets the label of this. Set to null to use the default
      • setLabel

        public void setLabel​(java.lang.String label)
        Returns the label of this, or null if none (the default)
      • getTermType

        public TermType getTermType()
        Returns the type of term to produce, never null. Default is DEFAULT
      • setTermType

        public void setTermType​(TermType termType)
        Sets the term type to produce
      • insertMatch

        protected void insertMatch​(RuleEvaluation e,
                                   Match matched,
                                   Item newItem,
                                   int offset)
        Inserts newItem at the position of this match TODO: Move to ruleevaluation
      • getLabelString

        protected java.lang.String getLabelString()
      • toInnerString

        public final java.lang.String toInnerString()
        All instances of this produces a parseable string output
        Specified by:
        toInnerString in class Production
      • toInnerTermString

        protected abstract java.lang.String toInnerTermString()