public class CommentStructure extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CommentStructure.CommentLocation |
| Constructor and Description |
|---|
CommentStructure() |
CommentStructure(AbstractComment comment) |
| Modifier and Type | Method and Description |
|---|---|
void |
addComment(AbstractComment comment,
CommentStructure.CommentLocation commentLocation)
Helper method to assist in adding comments to structures.
|
List<AbstractComment> |
asList() |
String |
asPlainText() |
List<AbstractComment> |
getBeginComments() |
List<AbstractComment> |
getEndComments() |
List<AbstractComment> |
getInternalComments() |
boolean |
isEmpty() |
void |
setBeginComments(List<AbstractComment> beginComments) |
void |
setEndComments(List<AbstractComment> endComments) |
void |
setInternalComments(List<AbstractComment> internalComments) |
public CommentStructure()
public CommentStructure(AbstractComment comment)
public void addComment(AbstractComment comment, CommentStructure.CommentLocation commentLocation)
comment - The comment to add (LineComment, BlockComment,
JavadocComment)commentLocation - Where the comment should be added.public List<AbstractComment> getBeginComments()
public List<AbstractComment> getEndComments()
public List<AbstractComment> getInternalComments()
public void setBeginComments(List<AbstractComment> beginComments)
public void setEndComments(List<AbstractComment> endComments)
public void setInternalComments(List<AbstractComment> internalComments)
public String asPlainText()
public List<AbstractComment> asList()
public boolean isEmpty()
Copyright © 2009–2018 Pivotal Software, Inc.. All rights reserved.