Home | History | Annotate | Download | only in impl

Lines Matching refs:from

26  * <p>The logic of what character causes what state transition is derived from
88 * in the {@code from} state.
97 * @param from the source state
101 InternalState getNextState(InternalState from, int currentChar) {
103 if (from == null || currentChar < 0)
106 int id = from.getId();
116 result = defaultStateTable[from.getId()];
121 void setExpression(String expr, InternalState from, InternalState to) {
122 if ((expr == null) || (from == null) || (to == null)) {
128 setDefaultDestination(from, to);
135 setRange(from, expr.charAt(i), expr.charAt(i + 2), to);
138 setDestination(from, expr.charAt(i), to);
144 private void fill(InternalState from, InternalState to) {
147 setDestination(from, c, to);
151 private void setDefaultDestination(InternalState from, InternalState to) {
152 Preconditions.checkNotNull(from); // Developer error if it triggers
154 int id = from.getId();
159 defaultStateTable[from.getId()] = to;
162 private void setDestination(InternalState from, char chr, InternalState to) {
163 Preconditions.checkNotNull(from); // Developer error if it triggers
167 int id = from.getId();
171 stateTable[from.getId()][chr] = to;
174 private void setRange(InternalState from, char start, char end,
183 setDestination(from, c, to);