forked from runtimeverification/k
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathLiterateDefinitionComment.java
More file actions
41 lines (33 loc) · 1.07 KB
/
LiterateDefinitionComment.java
File metadata and controls
41 lines (33 loc) · 1.07 KB
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
40
41
// Copyright (c) 2012-2019 K Team. All Rights Reserved.
package org.kframework.kil;
public class LiterateDefinitionComment extends DefinitionItem implements LiterateComment {
private String value;
private LiterateCommentType lcType = LiterateCommentType.COMMON;
public LiterateDefinitionComment(String value, LiterateCommentType lcType) {
this.value = value;
this.lcType = lcType;
}
public LiterateDefinitionComment(LiterateDefinitionComment literateDefinitionComment) {
super(literateDefinitionComment);
value = literateDefinitionComment.value;
lcType = literateDefinitionComment.lcType;
}
public void setValue(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public LiterateCommentType getType() {
return lcType;
}
@Override
public LiterateDefinitionComment shallowCopy() {
return new LiterateDefinitionComment(this);
}
@Override
public String toString() {
return "/*"+lcType+value+"*/";
}
}