com.jrockit.mc.flightrecorder.provider
Class ConstantField

java.lang.Object
  extended by com.jrockit.mc.flightrecorder.provider.Field
      extended by com.jrockit.mc.flightrecorder.provider.ConstantField
All Implemented Interfaces:
IField

public final class ConstantField
extends Field

Field that just returns a constant value.

Author:
Erik Gahlin

Constructor Summary
ConstantField(java.lang.String path, java.lang.String identifier, java.lang.Object constantValue)
           
 
Method Summary
 java.lang.Object getValue(IEvent event)
          Returns a field value for an event
 
Methods inherited from class com.jrockit.mc.flightrecorder.provider.Field
equals, getContentType, getDescription, getEventTypePath, getIdentifier, getName, getPropertyKeys, getPropertyValue, getRelationalKey, getType, hashCode, isRelational, isSynthetic, isVisible, setContentType, setDescription, setFieldType, setName, setPath, setProperty, setRelationalKey, setSynthetic, setVisible
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstantField

public ConstantField(java.lang.String path,
                     java.lang.String identifier,
                     java.lang.Object constantValue)
Method Detail

getValue

public java.lang.Object getValue(IEvent event)
Description copied from interface: IField
Returns a field value for an event

Specified by:
getValue in interface IField
Specified by:
getValue in class Field
Parameters:
event - the event
Returns:
value the value


Copyright © 1999, 2011, Oracle and/or its affiliates. All rights reserved.