|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.mat.query.registry.QueryContextImpl
public abstract class QueryContextImpl
Constructor Summary | |
---|---|
QueryContextImpl()
|
Method Summary | |
---|---|
boolean |
available(java.lang.Class<?> type,
Argument.Advice advice)
Is this type of data available from the context? |
boolean |
converts(java.lang.Class<?> type,
Argument.Advice advice)
Does the context have a converter for data of this type? |
java.lang.String |
convertToString(java.lang.Class<?> type,
Argument.Advice advice,
java.lang.Object value)
Convert the value to a string. |
java.lang.Object |
convertToValue(java.lang.Class<?> type,
Argument.Advice advice,
java.lang.String value)
Convert the String to the value based on the type and advice. |
java.lang.Object |
get(java.lang.Class<?> type,
Argument.Advice advice)
Get this type of data from the context. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.mat.query.IQueryContext |
---|
getContextDerivedData, getPrimaryFile, mapToExternalIdentifier, mapToObjectId, parse, parses |
Constructor Detail |
---|
public QueryContextImpl()
Method Detail |
---|
public boolean available(java.lang.Class<?> type, Argument.Advice advice)
IQueryContext
available
in interface IQueryContext
type
- the type the data should be converted toadvice
- advice such as from the query as to how the value should be converted.
public java.lang.Object get(java.lang.Class<?> type, Argument.Advice advice)
IQueryContext
get
in interface IQueryContext
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(java.lang.Class<?> type, Argument.Advice advice)
IQueryContext
converts
in interface IQueryContext
public java.lang.String convertToString(java.lang.Class<?> type, Argument.Advice advice, java.lang.Object value) throws SnapshotException
IQueryContext
convertToString
in interface IQueryContext
SnapshotException
public java.lang.Object convertToValue(java.lang.Class<?> type, Argument.Advice advice, java.lang.String value) throws SnapshotException
IQueryContext
convertToValue
in interface IQueryContext
SnapshotException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |