test_class.file: flink-libraries/flink-cep/src/test/java/org/apache/flink/cep/nfa/NFATest.java
test_class.identifier: NFATest
test_class.superclass: extends TestLogger
test_case.body: @Test
  	public void testStateNameGeneration() {
  		String expectedName1 = "a[2]";
  		String expectedName2 = "a_3";
  		String expectedName3 = "a[][42]";
  
  		String generatedName1 = NFA.generateStateName("a[]", 2);
  		String generatedName2 = NFA.generateStateName("a", 3);
  		String generatedName3 = NFA.generateStateName("a[][]", 42);
  
  
  		assertEquals(expectedName1, generatedName1);
  		assertEquals(expectedName2, generatedName2);
  		assertEquals(expectedName3, generatedName3);
  	}
test_case.class_method_signature: NFATest.testStateNameGeneration()
test_case.full_signature: @Test public void testStateNameGeneration()
test_case.identifier: testStateNameGeneration
test_case.invocations: generateStateName generateStateName generateStateName assertEquals assertEquals assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testStateNameGeneration()
focal_class.declarator: namePattern = Pattern.compile("^(.*\\[)(\\])$")
focal_class.modifier: private static final
focal_class.original_string: private static final Pattern namePattern = Pattern.compile("^(.*\\[)(\\])$");
focal_class.type: Pattern
focal_class.var_name: namePattern
focal_class.declarator: serialVersionUID = 2957674889294717265L
focal_class.modifier: private static final
focal_class.original_string: private static final long serialVersionUID = 2957674889294717265L;
focal_class.type: long
focal_class.var_name: serialVersionUID
focal_class.declarator: nonDuplicatingTypeSerializer
focal_class.modifier: private final
focal_class.original_string: private final NonDuplicatingTypeSerializer<T> nonDuplicatingTypeSerializer;
focal_class.type: NonDuplicatingTypeSerializer<T>
focal_class.var_name: nonDuplicatingTypeSerializer
focal_class.declarator: sharedBuffer
focal_class.modifier: private final
focal_class.original_string: private final SharedBuffer<State<T>, T> sharedBuffer;
focal_class.type: SharedBuffer<State<T>, T>
focal_class.var_name: sharedBuffer
focal_class.declarator: states
focal_class.modifier: private final
focal_class.original_string: private final Set<State<T>> states;
focal_class.type: Set<State<T>>
focal_class.var_name: states
focal_class.declarator: windowTime
focal_class.modifier: private final
focal_class.original_string: private final long windowTime;
focal_class.type: long
focal_class.var_name: windowTime
focal_class.declarator: startEventCounter
focal_class.modifier: private
focal_class.original_string: private int startEventCounter;
focal_class.type: int
focal_class.var_name: startEventCounter
focal_class.declarator: computationStates
focal_class.modifier: private transient
focal_class.original_string: private transient Queue<ComputationState<T>> computationStates;
focal_class.type: Queue<ComputationState<T>>
focal_class.var_name: computationStates
focal_class.file: flink-libraries/flink-cep/src/main/java/org/apache/flink/cep/nfa/NFA.java
focal_class.identifier: NFA
focal_class.interfaces: implements Serializable
focal_class.class_method_signature: NFA.NFA(final TypeSerializer<T> eventSerializer, final long windowTime)
focal_class.full_signature: public  NFA(final TypeSerializer<T> eventSerializer, final long windowTime)
focal_class.identifier: NFA
focal_class.modifiers: public
focal_class.parameters: (final TypeSerializer<T> eventSerializer, final long windowTime)
focal_class.signature:  NFA(final TypeSerializer<T> eventSerializer, final long windowTime)
focal_class.class_method_signature: NFA.getStates()
focal_class.full_signature: public Set<State<T>> getStates()
focal_class.identifier: getStates
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Set<State<T>>
focal_class.signature: Set<State<T>> getStates()
focal_class.class_method_signature: NFA.addStates(final Collection<State<T>> newStates)
focal_class.full_signature: public void addStates(final Collection<State<T>> newStates)
focal_class.identifier: addStates
focal_class.modifiers: public
focal_class.parameters: (final Collection<State<T>> newStates)
focal_class.return: void
focal_class.signature: void addStates(final Collection<State<T>> newStates)
focal_class.class_method_signature: NFA.addState(final State<T> state)
focal_class.full_signature: public void addState(final State<T> state)
focal_class.identifier: addState
focal_class.modifiers: public
focal_class.parameters: (final State<T> state)
focal_class.return: void
focal_class.signature: void addState(final State<T> state)
focal_class.class_method_signature: NFA.process(final T event, final long timestamp)
focal_class.full_signature: public Collection<Map<String, T>> process(final T event, final long timestamp)
focal_class.identifier: process
focal_class.modifiers: public
focal_class.parameters: (final T event, final long timestamp)
focal_class.return: Collection<Map<String, T>>
focal_class.signature: Collection<Map<String, T>> process(final T event, final long timestamp)
focal_class.class_method_signature: NFA.equals(Object obj)
focal_class.full_signature: @Override public boolean equals(Object obj)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (Object obj)
focal_class.return: boolean
focal_class.signature: boolean equals(Object obj)
focal_class.class_method_signature: NFA.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: NFA.computeNextStates(
  			final ComputationState<T> computationState,
  			final T event,
  			final long timestamp)
focal_class.full_signature: private Collection<ComputationState<T>> computeNextStates(
  			final ComputationState<T> computationState,
  			final T event,
  			final long timestamp)
focal_class.identifier: computeNextStates
focal_class.modifiers: private
focal_class.parameters: (
  			final ComputationState<T> computationState,
  			final T event,
  			final long timestamp)
focal_class.return: Collection<ComputationState<T>>
focal_class.signature: Collection<ComputationState<T>> computeNextStates(
  			final ComputationState<T> computationState,
  			final T event,
  			final long timestamp)
focal_class.class_method_signature: NFA.extractPatternMatches(final ComputationState<T> computationState)
focal_class.full_signature: private Collection<Map<String, T>> extractPatternMatches(final ComputationState<T> computationState)
focal_class.identifier: extractPatternMatches
focal_class.modifiers: private
focal_class.parameters: (final ComputationState<T> computationState)
focal_class.return: Collection<Map<String, T>>
focal_class.signature: Collection<Map<String, T>> extractPatternMatches(final ComputationState<T> computationState)
focal_class.class_method_signature: NFA.writeObject(ObjectOutputStream oos)
focal_class.full_signature: private void writeObject(ObjectOutputStream oos)
focal_class.identifier: writeObject
focal_class.modifiers: private
focal_class.parameters: (ObjectOutputStream oos)
focal_class.return: void
focal_class.signature: void writeObject(ObjectOutputStream oos)
focal_class.class_method_signature: NFA.readObject(ObjectInputStream ois)
focal_class.full_signature: private void readObject(ObjectInputStream ois)
focal_class.identifier: readObject
focal_class.modifiers: private
focal_class.parameters: (ObjectInputStream ois)
focal_class.return: void
focal_class.signature: void readObject(ObjectInputStream ois)
focal_class.class_method_signature: NFA.writeComputationState(final ComputationState<T> computationState, final ObjectOutputStream oos)
focal_class.full_signature: private void writeComputationState(final ComputationState<T> computationState, final ObjectOutputStream oos)
focal_class.identifier: writeComputationState
focal_class.modifiers: private
focal_class.parameters: (final ComputationState<T> computationState, final ObjectOutputStream oos)
focal_class.return: void
focal_class.signature: void writeComputationState(final ComputationState<T> computationState, final ObjectOutputStream oos)
focal_class.class_method_signature: NFA.readComputationState(ObjectInputStream ois)
focal_class.full_signature: @SuppressWarnings("unchecked") private ComputationState<T> readComputationState(ObjectInputStream ois)
focal_class.identifier: readComputationState
focal_class.modifiers: @SuppressWarnings("unchecked") private
focal_class.parameters: (ObjectInputStream ois)
focal_class.return: ComputationState<T>
focal_class.signature: ComputationState<T> readComputationState(ObjectInputStream ois)
focal_class.class_method_signature: NFA.generateStateName(final String name, final int index)
focal_class.full_signature: static String generateStateName(final String name, final int index)
focal_class.identifier: generateStateName
focal_class.modifiers: static
focal_class.parameters: (final String name, final int index)
focal_class.return: String
focal_class.signature: String generateStateName(final String name, final int index)
focal_method.body: static String generateStateName(final String name, final int index) {
  		Matcher matcher = namePattern.matcher(name);
  
  		if (matcher.matches()) {
  			return matcher.group(1) + index + matcher.group(2);
  		} else {
  			return name + "_" + index;
  		}
  	}
focal_method.class_method_signature: NFA.generateStateName(final String name, final int index)
focal_method.full_signature: static String generateStateName(final String name, final int index)
focal_method.identifier: generateStateName
focal_method.invocations: matcher matches group group
focal_method.modifiers: static
focal_method.parameters: (final String name, final int index)
focal_method.return: String
focal_method.signature: String generateStateName(final String name, final int index)