public class BuilderUtils
extends java.lang.Object
Constructor and Description |
---|
BuilderUtils() |
Modifier and Type | Method and Description |
---|---|
static java.io.File |
getBuildPhaseDirectory(JReFrameworkerProject jrefProject,
int buildPhase) |
static java.io.File |
getBuildPhaseJar(java.lang.String targetJar,
JReFrameworkerProject jrefProject,
int buildPhase) |
static java.io.File |
getCorrespondingClassFile(JReFrameworkerProject jrefProject,
java.io.File sourceFile)
Returns the corresponding class file for the given compilation units of the project
|
static java.io.File |
getCorrespondingSourceFile(JReFrameworkerProject jrefProject,
java.io.File classFile)
Returns the corresponding source file for the given class files of a project
|
static int |
getLastBuildPhase(JReFrameworkerProject jrefProject) |
static java.util.List<java.lang.Integer> |
getSortedBuildPhases(org.objectweb.asm.tree.ClassNode classNode) |
static org.eclipse.jdt.core.ICompilationUnit[] |
getSourceCompilationUnits(org.eclipse.jdt.core.IJavaProject jProject)
Returns a collection of K_SOURCE Compilation units in the project's package fragments
Reference: https://www.eclipse.org/forums/index.php/t/68072/
|
static boolean |
hasDefineTypeModification(org.objectweb.asm.tree.ClassNode classNode) |
static boolean |
hasFinalityModification(org.objectweb.asm.tree.ClassNode classNode) |
static boolean |
hasMergeTypeModification(org.objectweb.asm.tree.ClassNode classNode) |
static boolean |
hasPurgeModification(org.objectweb.asm.tree.ClassNode classNode) |
static boolean |
hasSevereProblems(org.eclipse.jdt.core.ICompilationUnit compilationUnit)
Returns true if the compilation unit has severe problem markers
Reference: https://www.ibm.com/support/knowledgecenter/en/SS4JCV_7.5.5/org.eclipse.jdt.doc.isv/guide/jdt_api_compile.htm
|
static boolean |
hasTopLevelAnnotation(org.objectweb.asm.tree.ClassNode classNode) |
static boolean |
hasVisibilityModification(org.objectweb.asm.tree.ClassNode classNode) |
public static final org.eclipse.jdt.core.ICompilationUnit[] getSourceCompilationUnits(org.eclipse.jdt.core.IJavaProject jProject)
javaproject
- public static final boolean hasSevereProblems(org.eclipse.jdt.core.ICompilationUnit compilationUnit) throws org.eclipse.core.runtime.CoreException
compilationUnit
- org.eclipse.core.runtime.CoreException
public static final java.io.File getCorrespondingSourceFile(JReFrameworkerProject jrefProject, java.io.File classFile) throws org.eclipse.jdt.core.JavaModelException, java.io.IOException
jrefProject
- compilationUnits
- org.eclipse.jdt.core.JavaModelException
java.io.IOException
public static final java.io.File getCorrespondingClassFile(JReFrameworkerProject jrefProject, java.io.File sourceFile) throws org.eclipse.jdt.core.JavaModelException, java.io.IOException
jrefProject
- compilationUnits
- org.eclipse.jdt.core.JavaModelException
java.io.IOException
public static int getLastBuildPhase(JReFrameworkerProject jrefProject) throws java.io.IOException
java.io.IOException
public static final java.io.File getBuildPhaseDirectory(JReFrameworkerProject jrefProject, int buildPhase) throws java.io.IOException
java.io.IOException
public static final java.io.File getBuildPhaseJar(java.lang.String targetJar, JReFrameworkerProject jrefProject, int buildPhase) throws java.io.IOException
java.io.IOException
public static final java.util.List<java.lang.Integer> getSortedBuildPhases(org.objectweb.asm.tree.ClassNode classNode) throws java.io.IOException
java.io.IOException
public static final boolean hasTopLevelAnnotation(org.objectweb.asm.tree.ClassNode classNode) throws java.io.IOException
java.io.IOException
public static final boolean hasMergeTypeModification(org.objectweb.asm.tree.ClassNode classNode) throws java.io.IOException
java.io.IOException
public static final boolean hasDefineTypeModification(org.objectweb.asm.tree.ClassNode classNode) throws java.io.IOException
java.io.IOException
public static final boolean hasPurgeModification(org.objectweb.asm.tree.ClassNode classNode) throws java.io.IOException
java.io.IOException
public static final boolean hasFinalityModification(org.objectweb.asm.tree.ClassNode classNode) throws java.io.IOException
java.io.IOException
public static final boolean hasVisibilityModification(org.objectweb.asm.tree.ClassNode classNode) throws java.io.IOException
java.io.IOException