public class ProviderContextImpl extends QueryContextImpl
Constructor and Description |
---|
ProviderContextImpl() |
Modifier and Type | Method and Description |
---|---|
ContextDerivedData |
getContextDerivedData()
For example, retained size derived data.
|
String |
getPrefix()
The prefix for files generated from snapshot
|
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?
|
available, converts, convertToString, convertToValue, get
public ContextDerivedData getContextDerivedData()
IQueryContext
public File getPrimaryFile()
IQueryContext
public String getPrefix()
IQueryContext
public String mapToExternalIdentifier(int objectId) throws SnapshotException
IQueryContext
IQueryContext.mapToObjectId(java.lang.String)
objectId
- The 0-based internal identifier used within MAT.SnapshotException
- if the objectId does not match to a valid object.IQueryContext.mapToObjectId(java.lang.String)
public int mapToObjectId(String externalIdentifier) throws SnapshotException
IQueryContext
IQueryContext.mapToExternalIdentifier(int)
.externalIdentifier
- as provided by IQueryContext.mapToExternalIdentifier(int)
.SnapshotException
- if the external identifier does not match a known object in the snapshot.public Object parse(Class<?> type, Argument.Advice advice, String[] args, ParsePosition pos) throws SnapshotException
IQueryContext
type
- The Java type of the destination argument.advice
- Further details about the argument.args
- The source to be convertedpos
- Used to index through the array of Strings.SnapshotException
- If there is a problem in the parsing.public boolean parses(Class<?> type, Argument.Advice advice)
IQueryContext
type
- The Java type of the argument.advice
- Further details about the argument.