public class TemplateHelper
extends java.lang.Object
JClass
printing.Constructor | Description |
---|---|
TemplateHelper() |
Modifier and Type | Method | Description |
---|---|---|
java.util.ArrayList<java.lang.String> |
getLines(java.lang.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. |
java.lang.String |
printAnnotation(JAnnotation annotation,
java.lang.String shift) |
Converts the given
JAnnotation to a string representation. |
java.lang.String |
removeLineBreaks(java.lang.String string) |
Removes all line breaks from a given string.
|
public java.lang.String removeLineBreaks(java.lang.String string)
string
- The string containing line breaks.public java.util.ArrayList<java.lang.String> getLines(java.lang.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 java.lang.String printAnnotation(JAnnotation annotation, java.lang.String shift)
JAnnotation
to a string representation.annotation
- The annotation to translate.shift
- The intent.Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com