Package org.jboss.as.cli.parsing

Examples of org.jboss.as.cli.parsing.EnterStateCharacterHandler


        this(AddressCommandSeparatorState.INSTANCE, ArgumentListState.INSTANCE, OutputTargetState.INSTANCE);
    }

    CommandState(AddressCommandSeparatorState addrCmdSeparator, ArgumentListState argList, OutputTargetState outputRedirect) {
        super(ID);
        setEnterHandler(new EnterStateCharacterHandler(addrCmdSeparator));
        setDefaultHandler(new EnterStateCharacterHandler(argList));
        this.setReturnHandler(new CharacterHandler() {
            @Override
            public void handle(ParsingContext ctx) throws CommandFormatException {
                if(ctx.isEndOfContent()) {
                    return;
View Full Code Here


                if(handler != null) {
                    handler.handle(ctx);
                }
            }});
        enterState('-', argState);
        setDefaultHandler(new EnterStateCharacterHandler(valueState));
        putHandler(OutputTargetState.OUTPUT_REDIRECT_CHAR, GlobalCharacterHandlers.LEAVE_STATE_HANDLER);
        setIgnoreWhitespaces(true);
    }
View Full Code Here

                    if(handler != null) {
                        handler.handle(ctx);
                    }
                }
            }});
        setDefaultHandler(new EnterStateCharacterHandler(opName));
        setReturnHandler(GlobalCharacterHandlers.LEAVE_STATE_HANDLER);
        setIgnoreWhitespaces(true);
    }
View Full Code Here

        setDefaultHandler(new CharacterHandler(){
            @Override
            public void handle(ParsingContext ctx) throws CommandFormatException {
                ctx.leaveState();
            }});
        setEnterHandler(new EnterStateCharacterHandler(sg));
        putHandler('^', new EnterStateCharacterHandler(cs));
        putHandler(',', new EnterStateCharacterHandler(gs));
        putHandler('}', GlobalCharacterHandlers.LEAVE_STATE_HANDLER);
        putHandler(';', GlobalCharacterHandlers.LEAVE_STATE_HANDLER);
        setReturnHandler(new CharacterHandler(){
            @Override
            public void handle(ParsingContext ctx) throws CommandFormatException {
View Full Code Here

    }

    private static class NameValueSeparatorState extends DefaultParsingState {
        NameValueSeparatorState(ArgumentValueState valueState) {
            super("NAME_VALUE_SEPARATOR");
            setDefaultHandler(new EnterStateCharacterHandler(valueState));
            setReturnHandler(GlobalCharacterHandlers.LEAVE_STATE_HANDLER);
        }
View Full Code Here

    }

    ServerGroupSeparatorState(ServerGroupState sg) {
        super(ID);
        setIgnoreWhitespaces(true);
        setDefaultHandler(new EnterStateCharacterHandler(sg));
        setReturnHandler(GlobalCharacterHandlers.LEAVE_STATE_HANDLER);
    }
View Full Code Here

                    ctx.enterState(props);
                } else {
                    ctx.enterState(sgList);
                }
            }});
        setDefaultHandler(new EnterStateCharacterHandler(props));
        setReturnHandler(new CharacterHandler(){
            @Override
            public void handle(ParsingContext ctx) throws CommandFormatException {
                if(ctx.isEndOfContent()) {
                    return;
View Full Code Here

    }

    ServerGroupState(ServerGroupNameState name, final PropertyListState propList) {
        super(ID);
        this.setIgnoreWhitespaces(true);
        setEnterHandler(new EnterStateCharacterHandler(name));
        putHandler(',', GlobalCharacterHandlers.LEAVE_STATE_HANDLER);
        putHandler('^', GlobalCharacterHandlers.LEAVE_STATE_HANDLER);
        putHandler('}', GlobalCharacterHandlers.LEAVE_STATE_HANDLER);
        putHandler(';', GlobalCharacterHandlers.LEAVE_STATE_HANDLER);
        putHandler('(', new EnterStateCharacterHandler(propList));
        setDefaultHandler(new CharacterHandler(){
            @Override
            public void handle(ParsingContext ctx) throws CommandFormatException {
                final char ch = ctx.getCharacter();
                if(ch == '(') {
View Full Code Here

    }

    ConcurrentSignState(ServerGroupState sg) {
        super(ID);
        setIgnoreWhitespaces(true);
        setDefaultHandler(new EnterStateCharacterHandler(sg));
        setReturnHandler(GlobalCharacterHandlers.LEAVE_STATE_HANDLER);
    }
View Full Code Here

    }

    HeaderListState(HeaderState headerState) {
        super(ID);
        putHandler('}', GlobalCharacterHandlers.LEAVE_STATE_HANDLER);
        setDefaultHandler(new EnterStateCharacterHandler(headerState));
        setReturnHandler(new CharacterHandler(){
            @Override
            public void handle(ParsingContext ctx) throws CommandFormatException {
                if(ctx.getCharacter() == '}') {
                    GlobalCharacterHandlers.LEAVE_STATE_HANDLER.handle(ctx);
View Full Code Here

TOP

Related Classes of org.jboss.as.cli.parsing.EnterStateCharacterHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.