Class StringSwitchImpl

    • Field Detail

    • Method Detail

      • caseOf

        public void caseOf​(java.lang.String value,
                           java.util.function.Consumer<BytecodeCreator> caseBlockConsumer)
        Description copied from interface: Switch
        Adds a case block.
        Specified by:
        caseOf in interface Switch<java.lang.String>
        Parameters:
        value - The value for the case label
        caseBlockConsumer - The consumer used to define the case block
      • caseOf

        public void caseOf​(java.util.List<java.lang.String> values,
                           java.util.function.Consumer<BytecodeCreator> caseBlockConsumer)
        Description copied from interface: Switch
        Adds multiple case labels for a single block.
        Specified by:
        caseOf in interface Switch<java.lang.String>
      • addCaseBlock

        private void addCaseBlock​(java.lang.String value,
                                  java.util.function.Consumer<BytecodeCreator> blockConsumer)