forked from runtimeverification/k
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRequire.java
More file actions
36 lines (29 loc) · 782 Bytes
/
Require.java
File metadata and controls
36 lines (29 loc) · 782 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 require directive */
public class Require extends DefinitionItem {
/** The string argument to {@code require}, as written in the input file. */
private String value;
public Require(Require require) {
super(require);
value = require.value;
}
public Require(String value) {
super();
this.value = value;
}
public void setValue(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public Require shallowCopy() {
return new Require(this);
}
@Override
public String toString() {
return "require \""+value+"\"";
}
}