| 22 | import static com.google.common.base.MoreObjects.toStringHelper; |
| 23 | |
| 24 | public 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected