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 |
getContent(String fileName) |
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)
Deprecated.
As of Wilberforce (7.0.x), replaced by
stripFullyQualifiedClassNames(String, String) |
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 getContent(String fileName) throws Exception
Exception
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)
@Deprecated public static String stripFullyQualifiedClassNames(String content) throws IOException
stripFullyQualifiedClassNames(String, String)
IOException
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