public class JsonMethodCallsSequenceBuilder extends SequenceBuilder<MethodCallSequence,MethodCall>
SequenceProcessor<MethodCallSequence> listener;
EntryFilter<MethodCall> includeFilter;
EntryFilter<MethodCall> excludeFilter;
// ...
newInstance().include(includeFilter)
.exclude(excludeFilter)
.addListener(listener)
.buildSessions(new FileInputStream("calls.json"));
The format of the JSON file must be a
HashMap<String, Set<List<MethodCalls>>> generated from
MethodCalls.java.| Modifier and Type | Method and Description |
|---|---|
void |
buildSessions(InputStream input)
Build the sequences from the different entry of the
InputStream. |
static JsonMethodCallsSequenceBuilder |
newInstance()
Returns a new instance of this class.
|
addListener, exclude, include, isAcceptedEntry, sequenceCompletedpublic static JsonMethodCallsSequenceBuilder newInstance()
public void buildSessions(InputStream input) throws SessionBuildException
SequenceBuilderInputStream.
Each time a sequence is built, the listeners are notified. All the
entries in the builded sequence satisfy isAcceptedEntry(Entry).buildSessions in class SequenceBuilder<MethodCallSequence,MethodCall>input - The InputStream to read.SessionBuildException - If an exception occurs during the building
of the sessions.Copyright © 2014–2018 University of Namur. All rights reserved.