Class HasPropertyVisitor

    • Constructor Detail

      • HasPropertyVisitor

        public HasPropertyVisitor()
    • Method Detail

      • visitText

        public Boolean visitText​(Void context,
                                 String text)
        Description copied from interface: TemplateVisitor
        Visit a textual template with the given context object.
        Specified by:
        visitText in interface TemplateVisitor<Boolean,​Void>
        Parameters:
        context - the contextual object (can be null)
        text - the text contained in the visited textual template
        Returns:
        the result of the operation on the template
      • visitEmpty

        public Boolean visitEmpty​(Void context)
        Description copied from interface: TemplateVisitor
        Visit an empty template with the given context object.
        Specified by:
        visitEmpty in interface TemplateVisitor<Boolean,​Void>
        Parameters:
        context - the contextual object (can be null)
        Returns:
        the result of the operation on the template
      • visitProperty

        public Boolean visitProperty​(Void context,
                                     Template property,
                                     Template defaultValue)
        Description copied from interface: TemplateVisitor
        Visit a property template with the given context object.
        Specified by:
        visitProperty in interface TemplateVisitor<Boolean,​Void>
        Parameters:
        context - the contextual object (can be null)
        property - the template that defines the property's name
        defaultValue - the template that defines the property's default value
        Returns:
        the result of the operation on the template
      • visitSequence

        public Boolean visitSequence​(Void context,
                                     List<Template> sequence)
        Description copied from interface: TemplateVisitor
        Visit a sequence of templates with the given context object.
        Specified by:
        visitSequence in interface TemplateVisitor<Boolean,​Void>
        Parameters:
        context - the contextual object (can be null)
        sequence - the (never null) list of templates within this sequence
        Returns:
        the result of the operation on the template