public final class OQL extends Object
Modifier and Type | Method and Description |
---|---|
static String |
classesByClassLoaderId(int classLoaderId)
Returns an OQL query string to select all classes loaded by the given
class loader.
|
static String |
classesByPattern(Pattern pattern,
boolean includeSubclasses)
Returns all classes matching a given regular expression.
|
static String |
forAddress(long address)
Select object by its address.
|
static String |
forObjectId(int objectId)
Select object by its object id.
|
static String |
forObjectIds(int[] objectIds)
Select objects by its ids.
|
static String |
forObjectsOfClass(IClass clasz)
All objects of a given class.
|
static String |
forObjectsOfClass(int classId)
All objects of a class identified by its id.
|
static String |
instancesByClassLoaderId(int classLoaderId)
Returns an OQL query string to select all objects loaded by the given
class loader.
|
static String |
instancesByPattern(Pattern pattern,
boolean includeSubclasses)
Return all instances of classes matching a given regular expression.
|
static String |
retainedBy(int objectId)
Select the retained set of a given object.
|
static String |
retainedBy(String oqlQuery)
Select the retained set of a given OQL query.
|
static void |
union(StringBuilder query,
String other)
Create a OQL union statement and append it to the query.
|
public static final String forAddress(long address)
public static final String forObjectId(int objectId)
public static String forObjectIds(int[] objectIds)
public static final String retainedBy(String oqlQuery)
public static String retainedBy(int objectId)
public static final String forObjectsOfClass(IClass clasz)
public static final String forObjectsOfClass(int classId)
public static void union(StringBuilder query, String other)
public static String instancesByPattern(Pattern pattern, boolean includeSubclasses)
public static String classesByPattern(Pattern pattern, boolean includeSubclasses)
public static String instancesByClassLoaderId(int classLoaderId)
select * from ( select * from java.lang.Class c where c implements org.eclipse.mat.snapshot.model.IClass and c.@classLoaderId = {0} )
classLoaderId
- the object id of the class loaderpublic static String classesByClassLoaderId(int classLoaderId)
select * from java.lang.Class c where c implements org.eclipse.mat.snapshot.model.IClass and c.@classLoaderId = {0}
classLoaderId
- the object id of the class loader