Examples of transition()


Examples of javax.faces.flow.FlowHandler.transition()

                                baseReturnFlow, targetFlow, outboundCallNode, context.getViewRoot().getViewId());
                        }
                        flowHandler.pushReturnMode(context);
                        Flow previousFlow = flowHandler.getCurrentFlow(context);
                        flowHandler.popReturnMode(context);
                        flowHandler.transition(context,
                                targetFlow, previousFlow, outboundCallNode, context.getViewRoot().getViewId());
                    }
                    // Invoke transition
                    flowHandler.transition(context,
                        currentFlow, targetFlow, outboundCallNode, context.getViewRoot().getViewId());
View Full Code Here

Examples of javax.faces.flow.FlowHandler.transition()

                        flowHandler.popReturnMode(context);
                        flowHandler.transition(context,
                                targetFlow, previousFlow, outboundCallNode, context.getViewRoot().getViewId());
                    }
                    // Invoke transition
                    flowHandler.transition(context,
                        currentFlow, targetFlow, outboundCallNode, context.getViewRoot().getViewId());

                    // Handle 2 or more flow consecutive start.
                    boolean failed = false;
                   
View Full Code Here

Examples of javax.faces.flow.FlowHandler.transition()

                                        navCase.getFromOutcome());
                                }
                            }
                            if (targetFlow != null)
                            {
                                flowHandler.transition(context,
                                    currentFlow, targetFlow, outboundCallNode, context.getViewRoot().getViewId());
                                startNodeId = targetFlow.getStartNodeId();
                            }
                            else
                            {
View Full Code Here

Examples of javax.faces.flow.FlowHandler.transition()

                for (int i = 0; i < navigationContext.getTargetFlows().size(); i++)
                {
                    Flow sourceFlow = navigationContext.getSourceFlows().get(i);
                    Flow targetFlow = navigationContext.getTargetFlows().get(i);

                    flowHandler.transition(facesContext, sourceFlow, targetFlow,
                        navigationContext.getFlowCallNodes().get(i),
                        navigationContext.getNavigationCase().getToViewId(facesContext));
                    sourceFlow = targetFlow;
                }
            }
View Full Code Here

Examples of org.antlr.analysis.NFAState.transition()

    public NFAState endStateOfAlternative(NFAState alt) {
        int endOfBlockStateNumber = alt.endOfBlockStateNumber;

        NFAState state = alt;
        while(state.stateNumber != endOfBlockStateNumber) {
            state = (NFAState)state.transition(0).target;
        }
        return state;
    }
}
View Full Code Here

Examples of org.antlr.analysis.NFAState.transition()

      // end of rule node
      if ( state.isAcceptState() ) {
        NFAState invokingState = (NFAState)ruleInvocationStack.pop();
        // System.out.println("pop invoking state "+invokingState);
        RuleClosureTransition invokingTransition =
          (RuleClosureTransition)invokingState.transition(0);
        // move to node after state that invoked this rule
        state = invokingTransition.getFollowState();
        continue;
      }
      if ( state.getNumberOfTransitions()==1 ) {
View Full Code Here

Examples of org.antlr.analysis.NFAState.transition()

      int n = g.getNumberOfAltsForDecisionNFA(state);
      int randomAlt = random.nextInt(n) + 1;
      //System.out.println("randomAlt="+randomAlt);
      NFAState altStartState =
        g.getNFAStateForAltOfDecision(state, randomAlt);
      Transition t = altStartState.transition(0);
      /*
      start of a decision could never be a labeled transition
      if ( !t.label.isEpsilon() ) {
        tokenTypes.add( getTokenType(t.label) );
      }
View Full Code Here

Examples of org.antlr.v4.runtime.atn.ATNState.transition()

    RuleContext ctx = recognizer._ctx;
    IntervalSet recoverSet = new IntervalSet();
    while ( ctx!=null && ctx.invokingState>=0 ) {
      // compute what follows who invoked us
      ATNState invokingState = atn.states.get(ctx.invokingState);
      RuleTransition rt = (RuleTransition)invokingState.transition(0);
      IntervalSet follow = atn.nextTokens(rt.followState);
      recoverSet.addAll(follow);
      ctx = ctx.parent;
    }
        recoverSet.remove(Token.EPSILON);
View Full Code Here

Examples of org.antlr.v4.runtime.atn.ATNState.transition()

                  @Nullable String message)
  {
    super(formatMessage(predicate, message), recognizer, recognizer.getInputStream(), recognizer._ctx);
    ATNState s = recognizer.getInterpreter().atn.states.get(recognizer.getState());

    AbstractPredicateTransition trans = (AbstractPredicateTransition)s.transition(0);
    if (trans instanceof PredicateTransition) {
      this.ruleIndex = ((PredicateTransition)trans).ruleIndex;
      this.predicateIndex = ((PredicateTransition)trans).predIndex;
    }
    else {
View Full Code Here

Examples of org.antlr.v4.runtime.atn.ATNState.transition()

//        System.out.println("following "+s+"="+following);
        if ( !following.contains(Token.EPSILON) ) return false;

        while ( ctx!=null && ctx.invokingState>=0 && following.contains(Token.EPSILON) ) {
            ATNState invokingState = atn.states.get(ctx.invokingState);
            RuleTransition rt = (RuleTransition)invokingState.transition(0);
            following = atn.nextTokens(rt.followState);
            if (following.contains(symbol)) {
                return true;
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.