public final class ElementHeaders extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ANNOTATIONS |
static String |
EXTENDS |
static String |
FLAGS |
static String |
IMPLEMENTS |
static String |
NAME |
static String |
PARAMETERS |
static String |
THROWS |
static String |
TYPE |
static String |
TYPEPARAMETERS |
Modifier and Type | Method and Description |
---|---|
static int |
getDistance(String s,
String t)
Computes distance between strings
|
static String |
getHeader(Element element,
CompilationInfo info,
String formatString)
Formats header of an element.
|
static String |
getHeader(TreePath treePath,
CompilationInfo info,
String formatString)
Formats header of a tree.
|
public static final String ANNOTATIONS
public static final String NAME
public static final String TYPE
public static final String THROWS
public static final String IMPLEMENTS
public static final String EXTENDS
public static final String TYPEPARAMETERS
public static final String FLAGS
public static final String PARAMETERS
public static String getHeader(TreePath treePath, CompilationInfo info, String formatString)
"method " + NAME + PARAMETERS + " has return type " + TYPE
treePath
- TreePath to the tree header is required forinfo
- CompilationInfoformatString
- Formating stringpublic static String getHeader(Element element, CompilationInfo info, String formatString)
"method " + NAME + PARAMETERS + " has return type " + TYPE
element
- Element to be formatedinfo
- Compilation infoformatString
- Formating string