forked from runtimeverification/k
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDebuggerMatchResult.java
More file actions
40 lines (32 loc) · 976 Bytes
/
DebuggerMatchResult.java
File metadata and controls
40 lines (32 loc) · 976 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Copyright (c) 2015-2016 K Team. All Rights Reserved.
package org.kframework.debugger;
import org.kframework.definition.Rule;
import org.kframework.kore.K;
/**
* Created by Manasvi on 8/19/15.
* Represents the result of a match on a configuration
*/
public class DebuggerMatchResult {
private final K substitutions;
private final Rule parsedRule;
private final Rule compiledRule;
private final String pattern;
public DebuggerMatchResult(K substitutions, Rule parsedRule, Rule compiledRule, String pattern) {
this.substitutions = substitutions;
this.parsedRule = parsedRule;
this.compiledRule = compiledRule;
this.pattern = pattern;
}
public Rule getCompiledRule() {
return compiledRule;
}
public Rule getParsedRule() {
return parsedRule;
}
public K getSubstitutions() {
return substitutions;
}
public String getPattern() {
return pattern;
}
}