Package org.jboss.as.cli.parsing

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


        this(ServerGroupState.INSTANCE);
    }

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


    }

    RolloutPlanState(PropertyListState props) {
        super(ID);
        this.setIgnoreWhitespaces(true);
        setEnterHandler(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));
        setReturnHandler(new CharacterHandler(){
            @Override
            public void handle(ParsingContext ctx) throws CommandFormatException {
                if(ctx.isEndOfContent()) {
                    return;
View Full Code Here

        this(ServerGroupState.INSTANCE);
    }

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

        this(NodeState.INSTANCE, AddressOperationSeparatorState.INSTANCE, PropertyListState.INSTANCE, OutputTargetState.INSTANCE);
    }

    public OperationRequestState(final NodeState nodeState, final AddressOperationSeparatorState addrOpSep, final PropertyListState propList, final OutputTargetState outRedirect) {
        super(ID);
        setDefaultHandler(new EnterStateCharacterHandler(nodeState));
        enterState(':', addrOpSep);
        enterState('(', propList);
        enterState(OutputTargetState.OUTPUT_REDIRECT_CHAR, outRedirect);
        setReturnHandler(new CharacterHandler(){
            @Override
View Full Code Here

    }

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

    }

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

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

    CommandState(AddressCommandSeparatorState cmdName, ArgumentListState argList, OutputTargetState outputRedirect) {
        super(ID);
        setEnterHandler(new EnterStateCharacterHandler(cmdName));
        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);
                    }
                }
            }});
        setDefaultHandler(new EnterStateCharacterHandler(opName));
        setReturnHandler(GlobalCharacterHandlers.LEAVE_STATE_HANDLER);
        setIgnoreWhitespaces(true);
    }
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

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.