MCPcopy Create free account
hub / github.com/airlift/bytecode / Comment

Class Comment

src/main/java/io/airlift/bytecode/Comment.java:24–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22import static com.google.common.base.MoreObjects.toStringHelper;
23
24public class Comment
25 implements InstructionNode
26{
27 protected final String comment;
28
29 public Comment(String comment)
30 {
31 this.comment = comment;
32 }
33
34 public String getComment()
35 {
36 return comment;
37 }
38
39 @Override
40 public void accept(MethodVisitor visitor, MethodGenerationContext generationContext)
41 {
42 }
43
44 @Override
45 public String toString()
46 {
47 return toStringHelper(this)
48 .addValue(comment)
49 .toString();
50 }
51
52 @Override
53 public List<BytecodeNode> getChildNodes()
54 {
55 return ImmutableList.of();
56 }
57
58 @Override
59 public <T> T accept(BytecodeNode parent, BytecodeVisitor<T> visitor)
60 {
61 return visitor.visitComment(parent, this);
62 }
63}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected