public class ToolsUtil
extends Object
Modifier and Type | Field and Description |
---|---|
static String |
AUTHOR |
static int |
PLUGINS_MAX_DIR_LEVEL |
static int |
PORTAL_MAX_DIR_LEVEL |
Constructor and Description |
---|
ToolsUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
encodeEnvironmentProperty(String property) |
static String |
getContent(String fileName) |
static int |
getLevel(String s) |
static int |
getLevel(String s,
String[] increaseLevelStrings,
String[] decreaseLevelStrings) |
static int |
getLevel(String s,
String[] increaseLevelStrings,
String[] decreaseLevelStrings,
int startLevel) |
static int |
getLevel(String s,
String increaseLevelString,
String decreaseLevelString) |
static String |
getPackagePath(File file) |
static String |
getPackagePath(String fileName) |
static boolean |
isInsideQuotes(String s,
int pos) |
static boolean |
isInsideQuotes(String s,
int pos,
boolean allowEscapedQuotes) |
static String |
stripFullyQualifiedClassNames(String content,
String packagePath) |
static String |
stripFullyQualifiedClassNames(String content,
String imports,
String packagePath) |
static void |
writeFile(File file,
String content,
Set<String> modifiedFileNames) |
static void |
writeFile(File file,
String content,
String author,
Map<String,Object> jalopySettings,
Set<String> modifiedFileNames) |
static void |
writeFile(File file,
String content,
String author,
Map<String,Object> jalopySettings,
Set<String> modifiedFileNames,
String packagePath) |
static void |
writeFile(File file,
String content,
String author,
Set<String> modifiedFileNames) |
static void |
writeFile(File file,
String content,
String header,
String author,
Map<String,Object> jalopySettings,
Set<String> modifiedFileNames,
String packagePath) |
static void |
writeFileRaw(File file,
String content,
Set<String> modifiedFileNames) |
public static final String AUTHOR
public static final int PLUGINS_MAX_DIR_LEVEL
public static final int PORTAL_MAX_DIR_LEVEL
public static String encodeEnvironmentProperty(String property)
public static String getContent(String fileName) throws Exception
Exception
public static int getLevel(String s)
public static int getLevel(String s, String increaseLevelString, String decreaseLevelString)
public static int getLevel(String s, String[] increaseLevelStrings, String[] decreaseLevelStrings)
public static int getLevel(String s, String[] increaseLevelStrings, String[] decreaseLevelStrings, int startLevel)
public static String getPackagePath(File file)
public static String getPackagePath(String fileName)
public static boolean isInsideQuotes(String s, int pos)
public static boolean isInsideQuotes(String s, int pos, boolean allowEscapedQuotes)
public static String stripFullyQualifiedClassNames(String content, String packagePath) throws IOException
IOException
public static String stripFullyQualifiedClassNames(String content, String imports, String packagePath) throws IOException
IOException
public static void writeFile(File file, String content, Set<String> modifiedFileNames) throws IOException
IOException
public static void writeFile(File file, String content, String author, Map<String,Object> jalopySettings, Set<String> modifiedFileNames) throws IOException
IOException
public static void writeFile(File file, String content, String author, Map<String,Object> jalopySettings, Set<String> modifiedFileNames, String packagePath) throws IOException
IOException
public static void writeFile(File file, String content, String author, Set<String> modifiedFileNames) throws IOException
IOException
public static void writeFile(File file, String content, String header, String author, Map<String,Object> jalopySettings, Set<String> modifiedFileNames, String packagePath) throws IOException
IOException
public static void writeFileRaw(File file, String content, Set<String> modifiedFileNames) throws IOException
IOException