Constructor and Description |
---|
TemplateHelper() |
Modifier and Type | Method and Description |
---|---|
ArrayList<String> |
getLines(String comment)
Takes a comment string and splits it into lines
that have the maximum length of 70 chars,
|
boolean |
isEnum(JClass jClass)
Returns true if the
JClass instance is instance of JEnum. |
String |
printAnnotation(JAnnotation annotation,
String shift)
Converts the given
JAnnotation to a string representation. |
String |
removeLineBreaks(String string)
Removes all line breaks from a given string.
|
public String removeLineBreaks(String string)
string
- The string containing line breaks.public ArrayList<String> getLines(String comment)
comment
- The comment as string.public boolean isEnum(JClass jClass)
JClass
instance is instance of JEnum.jClass
- The JClass
instance to check.public String printAnnotation(JAnnotation annotation, String shift)
JAnnotation
to a string representation.annotation
- The annotation to translate.shift
- The intent.Copyright © 2016. All rights reserved.