|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.bindings.TriggerSequence
A sequence of one or more triggers. None of these triggers may be
null
.
Field Summary | |
---|---|
protected int |
hashCode
The hash code for this object. |
protected Trigger[] |
triggers
The list of trigger in this sequence. |
Constructor Summary | |
---|---|
TriggerSequence(Trigger[] triggers)
Constructs a new instance of TriggerSequence . |
Method Summary | |
---|---|
boolean |
endsWith(TriggerSequence triggerSequence,
boolean equals)
Returns whether or not this key sequence ends with the given key sequence. |
boolean |
equals(Object object)
|
abstract String |
format()
Formats this trigger sequence into the current default look. |
abstract TriggerSequence[] |
getPrefixes()
Returns a list of prefixes for the current sequence. |
Trigger[] |
getTriggers()
Returns the list of triggers. |
int |
hashCode()
|
boolean |
isEmpty()
Returns whether or not this trigger sequence is empty. |
boolean |
startsWith(TriggerSequence triggerSequence,
boolean equals)
Returns whether or not this trigger sequence starts with the given trigger sequence. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected transient int hashCode
HASH_CODE_NOT_COMPUTED
iff the hash code has not
yet been computed.
protected final Trigger[] triggers
null
, and never contains null
elements.
Constructor Detail |
public TriggerSequence(Trigger[] triggers)
TriggerSequence
.
triggers
- The triggers contained within this sequence; must not be
null
or contain null
elements.
May be empty.Method Detail |
public final boolean endsWith(TriggerSequence triggerSequence, boolean equals)
triggerSequence
- a trigger sequence. Must not be null
.equals
- whether or not an identical trigger sequence should be
considered as a possible match.
true
, iff the given trigger sequence ends with
this trigger sequence.public final boolean equals(Object object)
public abstract String format()
null
.public abstract TriggerSequence[] getPrefixes()
Returns a list of prefixes for the current sequence. A prefix is any
leading subsequence in a TriggerSequence
. A prefix is
also an instance of TriggerSequence
.
For example, consider a trigger sequence that consists of four triggers: A, B, C and D. The prefixes would be "", "A", "A B", and "A B C". The list of prefixes must always be the same as the size of the trigger list.
null
, but may be empty. It must only
contains instances of TriggerSequence
.public final Trigger[] getTriggers()
null
and guaranteed to only
contain instances of Trigger
.public final int hashCode()
public final boolean isEmpty()
true
, iff the trigger sequence is empty.public final boolean startsWith(TriggerSequence triggerSequence, boolean equals)
triggerSequence
- a trigger sequence. Must not be null
.equals
- whether or not an identical trigger sequence should be
considered as a possible match.
true
, iff the given trigger sequence starts with
this key sequence.
|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.