Skip navigation links
oracle.ide.extension
Class HashStructureHookEvent
java.lang.Object
java.util.EventObject
oracle.ide.extension.HashStructureHookEvent
- All Implemented Interfaces:
- java.io.Serializable
-
public final class HashStructureHookEvent
- extends java.util.EventObject
HashStructureHookEvent instances are sent to HashStructureHookListener objects. HashStructureHookEvents come in Type.LISTENER_ATTACHED and Type.ELEMENT_VISITED forms. A Type.LISTENER_ATTACHED form contains exposes only the combined HashStructure associated with the HashStructureHook source. A Type.ELEMENT_VISITED event exposes s a read-only HashStructure that contains the data from the new element that has been visited, as well as the combined HashStructure that contains all the data processed by the HashStructureHook (new and old).
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
HashStructureHookEvent
public HashStructureHookEvent(HashStructureHook source,
HashStructure combinedHashStructure)
HashStructureHookEvent
public HashStructureHookEvent(HashStructureHook source,
HashStructure combinedHashStructure,
HashStructure newElementHashStructure,
Extension extension)
getHashStructureHook
public HashStructureHook getHashStructureHook()
- Get the HashStructureHook that is the source of this event.
-
- Returns:
getCombinedHashStructure
public HashStructure getCombinedHashStructure()
- Get the HashStructureHook's combined HashStructure that contains all the data that has been processed by the HashStructureHook (new and old).
-
- Returns:
getNewElementHashStructure
public HashStructure getNewElementHashStructure()
- Get the read-only HashStructure that contains just the data from the new element that was visited (or null in the case of a listener attached event).
-
- Returns:
getExtension
public Extension getExtension()
- Get the IDE Extension that contributed the new element that was visited (null in the case of a listener attached event).
-
- Returns:
getEventType
public HashStructureHookEvent.Type getEventType()
- Get the type of this event (Type.LISTENER_ATTACHED, or TYPE.ELEMENT_VISITED).
-
- Returns:
Skip navigation links
Copyright © 1997, 2012, Oracle. All rights reserved.