public class JrpcgenDocumentable extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
documentation |
| Constructor and Description |
|---|
JrpcgenDocumentable() |
JrpcgenDocumentable(String jdoc) |
| Modifier and Type | Method and Description |
|---|---|
protected Appendable |
appendDeprecatedOrNothing(Appendable p,
String prefix)
generate \n+prefix+@Deprecated java annotation if deprecated javadoc tag is found, otherwise do nothing.
|
protected void |
appendDeprecatedOrNothing(JrpcgenJavaFile javaFile) |
boolean |
documentationIsEmpty() |
boolean |
documentationIsProvided() |
static String |
emptyDocumentation() |
String |
getDocumentation() |
String |
getIdentedDocu(String prefix)
format javadoc comment.
|
String |
getIdentedDocu(String prefix,
boolean isWithDeprecatedAnnotation) |
protected boolean |
isDeprecated() |
void |
writeDocumentation(JrpcgenJavaFile javaFile) |
void |
writeDocumentation(JrpcgenJavaFile javaFile,
boolean isWithDeprecatedAnnotation) |
protected String documentation
public JrpcgenDocumentable()
public JrpcgenDocumentable(String jdoc)
public static String emptyDocumentation()
public boolean documentationIsEmpty()
public boolean documentationIsProvided()
public String getDocumentation()
public String getIdentedDocu(String prefix)
Deprecated java annotation is generated.prefix - is prefixed each comment linepublic void writeDocumentation(JrpcgenJavaFile javaFile)
public void writeDocumentation(JrpcgenJavaFile javaFile, boolean isWithDeprecatedAnnotation)
protected void appendDeprecatedOrNothing(JrpcgenJavaFile javaFile)
protected Appendable appendDeprecatedOrNothing(Appendable p, String prefix)
protected boolean isDeprecated()
Copyright © 2025. All rights reserved.