|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.mat.query.registry.QueryContextImpl
org.eclipse.mat.internal.snapshot.SnapshotQueryContext
public class SnapshotQueryContext
Constructor Summary | |
---|---|
SnapshotQueryContext(ISnapshot snapshot)
|
Method Summary | |
---|---|
boolean |
available(Class<?> type,
Argument.Advice advice)
Is this type of data available from the context? |
boolean |
converts(Class<?> type,
Argument.Advice advice)
Does the context have a converter for data of this type? |
String |
convertToString(Class<?> type,
Argument.Advice advice,
Object value)
Convert the value to a string. |
Object |
convertToValue(Class<?> type,
Argument.Advice advice,
String value)
Convert the String to the value based on the type and advice. |
Object |
get(Class<?> type,
Argument.Advice advice)
Get this type of data from the context. |
ContextDerivedData |
getContextDerivedData()
For example, retained size derived data. |
File |
getPrimaryFile()
The main file for the snapshot |
String |
mapToExternalIdentifier(int objectId)
Map an id to a readable form. |
int |
mapToObjectId(String externalIdentifier)
Map readable form to internal id. |
Object |
parse(Class<?> type,
Argument.Advice advice,
String[] args,
ParsePosition pos)
Consume the special data. |
boolean |
parses(Class<?> type,
Argument.Advice advice)
Is special parsing required to get an object of the required type? |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SnapshotQueryContext(ISnapshot snapshot)
Method Detail |
---|
public File getPrimaryFile()
IQueryContext
public String mapToExternalIdentifier(int objectId) throws SnapshotException
IQueryContext
IQueryContext.mapToObjectId(java.lang.String)
SnapshotException
IQueryContext.mapToObjectId(java.lang.String)
public int mapToObjectId(String externalIdentifier) throws SnapshotException
IQueryContext
IQueryContext.mapToExternalIdentifier(int)
SnapshotException
public boolean available(Class<?> type, Argument.Advice advice)
IQueryContext
available
in interface IQueryContext
available
in class QueryContextImpl
type
- the type the data should be converted toadvice
- advice such as from the query as to how the value should be converted.
public Object get(Class<?> type, Argument.Advice advice)
IQueryContext
get
in interface IQueryContext
get
in class QueryContextImpl
type
- the type the data should be converted toadvice
- advice such as from the query as to how the value should be converted.
public boolean converts(Class<?> type, Argument.Advice advice)
IQueryContext
converts
in interface IQueryContext
converts
in class QueryContextImpl
public String convertToString(Class<?> type, Argument.Advice advice, Object value) throws SnapshotException
IQueryContext
convertToString
in interface IQueryContext
convertToString
in class QueryContextImpl
SnapshotException
public Object convertToValue(Class<?> type, Argument.Advice advice, String value) throws SnapshotException
IQueryContext
convertToValue
in interface IQueryContext
convertToValue
in class QueryContextImpl
SnapshotException
public boolean parses(Class<?> type, Argument.Advice advice)
IQueryContext
public Object parse(Class<?> type, Argument.Advice advice, String[] args, ParsePosition pos) throws SnapshotException
IQueryContext
SnapshotException
public ContextDerivedData getContextDerivedData()
IQueryContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |