Package org.acplt.oncrpc.apps.jrpcgen
Class JrpcgenDocumentable
java.lang.Object
org.acplt.oncrpc.apps.jrpcgen.JrpcgenDocumentable
- Direct Known Subclasses:
JrpcgenDeclaration,JrpcgenXdrDefinition
base class providing storage of a javadoc comment. for use at jrpcgen data model.
- Author:
- zelgerpe
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected AppendableappendDeprecatedOrNothing(Appendable p, String prefix) generate \n+prefix+@Deprecated java annotation if deprecated javadoc tag is found, otherwise do nothing.protected voidappendDeprecatedOrNothing(JrpcgenJavaFile javaFile) booleanbooleanstatic StringgetIdentedDocu(String prefix) format javadoc comment.getIdentedDocu(String prefix, boolean isWithDeprecatedAnnotation) protected booleanvoidwriteDocumentation(JrpcgenJavaFile javaFile) voidwriteDocumentation(JrpcgenJavaFile javaFile, boolean isWithDeprecatedAnnotation)
-
Field Details
-
documentation
-
-
Constructor Details
-
JrpcgenDocumentable
public JrpcgenDocumentable() -
JrpcgenDocumentable
-
-
Method Details
-
emptyDocumentation
-
documentationIsEmpty
public boolean documentationIsEmpty() -
documentationIsProvided
public boolean documentationIsProvided() -
getDocumentation
-
getIdentedDocu
format javadoc comment. In case it contains a deprecated javadoc tag aDeprecatedjava annotation is generated.- Parameters:
prefix- is prefixed each comment line- Returns:
- prefixed pretty formatted javadoc comment.
-
getIdentedDocu
-
writeDocumentation
-
writeDocumentation
-
appendDeprecatedOrNothing
-
appendDeprecatedOrNothing
generate \n+prefix+@Deprecated java annotation if deprecated javadoc tag is found, otherwise do nothing. see USF10633- Returns:
- p
-
isDeprecated
protected boolean isDeprecated()
-