public class ClasspathHelpers extends Object
| Constructor and Description |
|---|
ClasspathHelpers() |
| Modifier and Type | Method and Description |
|---|---|
static void |
assertClasspath(org.eclipse.core.resources.IProject project,
String... expectedPatterns) |
static void |
assertClasspath(String[] expectedPathPatterns,
org.eclipse.jdt.core.IClasspathEntry[] cp)
Asserts that classpath matches specified path regex patterns.
|
static void |
assertClasspathEntry(org.eclipse.jdt.core.IClasspathEntry[] cp,
org.eclipse.core.runtime.IPath path)
Asserts that classpath has one and only one entry with given path.
|
static void |
assertClasspathEntry(org.eclipse.jdt.core.IClasspathEntry[] cp,
String... segments)
Asserts that classpath has one and only one entry with given first path segments.
|
static org.eclipse.jdt.core.IClasspathAttribute |
getClasspathAttribute(org.eclipse.jdt.core.IClasspathEntry entry,
String attributeName) |
static org.eclipse.jdt.core.IClasspathEntry |
getClasspathEntry(org.eclipse.jdt.core.IClasspathEntry[] cp,
org.eclipse.core.runtime.IPath path)
Returns classpath entry with given path.
|
static org.eclipse.jdt.core.IClasspathEntry |
getClasspathEntry(org.eclipse.jdt.core.IClasspathEntry[] cp,
String path) |
public static org.eclipse.jdt.core.IClasspathEntry getClasspathEntry(org.eclipse.jdt.core.IClasspathEntry[] cp,
org.eclipse.core.runtime.IPath path)
public static org.eclipse.jdt.core.IClasspathEntry getClasspathEntry(org.eclipse.jdt.core.IClasspathEntry[] cp,
String path)
public static void assertClasspathEntry(org.eclipse.jdt.core.IClasspathEntry[] cp,
String... segments)
public static void assertClasspathEntry(org.eclipse.jdt.core.IClasspathEntry[] cp,
org.eclipse.core.runtime.IPath path)
public static void assertClasspath(String[] expectedPathPatterns, org.eclipse.jdt.core.IClasspathEntry[] cp)
public static void assertClasspath(org.eclipse.core.resources.IProject project,
String... expectedPatterns)
throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionpublic static org.eclipse.jdt.core.IClasspathAttribute getClasspathAttribute(org.eclipse.jdt.core.IClasspathEntry entry,
String attributeName)
Copyright © 2005–2021 Eclipse Foundation. All rights reserved.