forked from runtimeverification/k
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSentence.java
More file actions
36 lines (29 loc) · 836 Bytes
/
Sentence.java
File metadata and controls
36 lines (29 loc) · 836 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
// Copyright (c) 2012-2019 K Team. All Rights Reserved.
package org.kframework.kil;
/**
* A rule, configuration declaration, or context.
* Each parses as a term, this class declares common members
* {@link #body} and {@link #requires}, which have different
* interpretations in the subclasses.
*/
public class Sentence extends ModuleItem {
/** Label from {@code rule[}label{@code ]:} syntax or "". Currently unrelated to attributes */
String label = "";
public Sentence(Sentence s) {
super(s);
this.label = s.label;
}
public Sentence() {
super();
}
@Override
public Sentence shallowCopy() {
return new Sentence(this);
}
public String getLabel() {
return label;
}
public void setLabel(String label) {
this.label = label;
}
}