public class CodeUtil extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CodeUtil.LogInterception |
Modifier and Type | Field and Description |
---|---|
static HashMap<String,String> |
classSourceInfo
The Class source info.
|
static File |
projectRoot
The constant projectRoot.
|
Constructor and Description |
---|
CodeUtil() |
Modifier and Type | Method and Description |
---|---|
static CharSequence |
codeUrl(StackTraceElement callingFrame)
Code url char sequence.
|
static URI |
findFile(Class<?> clazz)
Find file file.
|
static URI |
findFile(StackTraceElement callingFrame)
Find file file.
|
static URI |
findFile(String path)
Find file file.
|
static HashMap<String,String> |
getDefaultClassInfo()
Gets default class info.
|
protected static String |
getGitBase(File absoluteFile,
String def)
Gets git base.
|
static CharSequence |
getIndent(CharSequence txt)
Gets indent.
|
static String |
getInnerText(StackTraceElement callingFrame)
Gets heapCopy text.
|
static String |
getJavadoc(Class<?> clazz)
Gets javadoc.
|
static CodeUtil.LogInterception |
intercept(NotebookOutput log,
String loggerName) |
@Nullable public static URI findFile(@Nullable Class<?> clazz)
clazz
- the clazz@Nonnull public static URI findFile(@Nonnull StackTraceElement callingFrame)
callingFrame
- the calling frame@Nonnull public static URI findFile(@Nonnull String path)
path
- the path@Nonnull public static CharSequence getIndent(@Nonnull CharSequence txt)
txt
- the txtpublic static String getInnerText(@Nonnull StackTraceElement callingFrame)
callingFrame
- the calling framepublic static String getJavadoc(@Nullable Class<?> clazz)
clazz
- the clazzpublic static HashMap<String,String> getDefaultClassInfo()
protected static String getGitBase(File absoluteFile, String def)
absoluteFile
- the absolute filedef
- the defpublic static CharSequence codeUrl(StackTraceElement callingFrame)
callingFrame
- the calling framepublic static CodeUtil.LogInterception intercept(NotebookOutput log, String loggerName)
Copyright © 2019 SimiaCryptus Software. All rights reserved.