Class GlobalEndIfDirectiveHandler


  • public class GlobalEndIfDirectiveHandler
    extends AbstractDirectiveHandler
    The class implements the //#_endif directive handler
    • Constructor Detail

      • GlobalEndIfDirectiveHandler

        public GlobalEndIfDirectiveHandler()
    • Method Detail

      • executeOnlyWhenExecutionAllowed

        public boolean executeOnlyWhenExecutionAllowed()
        Description copied from class: AbstractDirectiveHandler
        Shows that the directive can be executed only when the preprocessing n active state i.e. if it is in active block //#if..//#endif of //#while
        Overrides:
        executeOnlyWhenExecutionAllowed in class AbstractDirectiveHandler
        Returns:
        true if the directive can be executed only if it is in active block, else the directive will be called in any case
      • getReference

        public java.lang.String getReference()
        Description copied from class: AbstractDirectiveHandler
        Get the directive reference, it will be printed for a help request
        Specified by:
        getReference in class AbstractDirectiveHandler
        Returns:
        the directive reference as a String, must not be null
      • isGlobalPhaseAllowed

        public boolean isGlobalPhaseAllowed()
        Description copied from class: AbstractDirectiveHandler
        Shows that the directive can be executed during a global preprocessing phase
        Overrides:
        isGlobalPhaseAllowed in class AbstractDirectiveHandler
        Returns:
        true if the directive allows the global directive phase, false if the directive must be ignored during that phase
      • isPreprocessingPhaseAllowed

        public boolean isPreprocessingPhaseAllowed()
        Description copied from class: AbstractDirectiveHandler
        Shows that the directive can be executed during the second preprocessing phase
        Overrides:
        isPreprocessingPhaseAllowed in class AbstractDirectiveHandler
        Returns:
        true uf the directive can be executed during the second preprocessing phase else false if the directive must be ignored