|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.dtfj.analyzer.util.AnalyzerContextAttributes
public class AnalyzerContextAttributes
Utility functions for manipulating analyzer context attributes.
(See setContextAttribute(int, String)
)
Field Summary | |
---|---|
static int |
DTFJ_VERSION_ATTRIBUTE
Reserved value for the precedence associated with the attribute that represents the DTFJ API version. |
static int |
JRE_VERSION_ATTRIBUTE
Reserved value for the precedence associated with the attribute that represents the JRE version, for example 1.4.2, 5.0, etc. |
static int |
JVM_TYPE_ATTRIBUTE
Reserved value for the precedence associated with the attribute that represents the JVM type, for example Sov or J9. |
Constructor Summary | |
---|---|
AnalyzerContextAttributes()
|
Method Summary | |
---|---|
static java.lang.String |
asString(java.util.List attributes)
Print a list of context attributes as a String |
java.util.List |
getContextAttributes()
|
void |
initializeBasicContextAttributes(com.ibm.dtfj.image.ImageFactory imageFactory,
com.ibm.dtfj.runtime.ManagedRuntime runtime,
java.util.logging.Logger logger)
Initialize some basic context attributes. |
void |
setContextAttribute(int precedence,
java.lang.String tag)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DTFJ_VERSION_ATTRIBUTE
public static final int JVM_TYPE_ATTRIBUTE
public static final int JRE_VERSION_ATTRIBUTE
Constructor Detail |
---|
public AnalyzerContextAttributes()
Method Detail |
---|
public void setContextAttribute(int precedence, java.lang.String tag)
precedence
- an integer representing the order in which multiple attributes should
be considered when making decisions based on multiple attributestag
- a string representing the value of the attribute to addIAnalyzerContext.setContextAttribute(int, java.lang.String)
public java.util.List getContextAttributes()
IAnalyzerContext.getContextAttributes()
public static java.lang.String asString(java.util.List attributes)
attributes
- a list of context attributes as returned by getContextAttributes()
public void initializeBasicContextAttributes(com.ibm.dtfj.image.ImageFactory imageFactory, com.ibm.dtfj.runtime.ManagedRuntime runtime, java.util.logging.Logger logger)
imageFactory
- the DTFJ ImageFactory in use (to find the DTFJ API version)runtime
- the DTFJ runtime in uselogger
- a Logger on which to report errors
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |