Package io.protostuff.compiler.model
Class AbstractElement
- java.lang.Object
-
- io.protostuff.compiler.model.AbstractElement
-
- All Implemented Interfaces:
Element
- Direct Known Subclasses:
AbstractDescriptor,DynamicMessage.Value,Extension,Import,Package,Range,Syntax
public abstract class AbstractElement extends Object implements Element
Abstract base class for all proto nodes.- Author:
- Kostiantyn Shchepanovskyi
-
-
Field Summary
Fields Modifier and Type Field Description protected List<String>commentsprotected SourceCodeLocationsourceCodeLocation
-
Constructor Summary
Constructors Constructor Description AbstractElement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddComment(String line)List<String>getCommentLines()StringgetComments()SourceCodeLocationgetSourceCodeLocation()voidsetComments(List<String> comments)voidsetSourceCodeLocation(SourceCodeLocation sourceCodeLocation)
-
-
-
Field Detail
-
sourceCodeLocation
protected SourceCodeLocation sourceCodeLocation
-
-
Method Detail
-
getSourceCodeLocation
public SourceCodeLocation getSourceCodeLocation()
- Specified by:
getSourceCodeLocationin interfaceElement
-
setSourceCodeLocation
public void setSourceCodeLocation(SourceCodeLocation sourceCodeLocation)
-
getCommentLines
public List<String> getCommentLines()
- Specified by:
getCommentLinesin interfaceElement
-
getComments
public String getComments()
- Specified by:
getCommentsin interfaceElement
-
addComment
public void addComment(String line)
-
-