org.netbeans.spi.editor.hints/0 1.24.0 7

org.netbeans.spi.editor.hints
Interface LazyFixList


public interface LazyFixList

A list of fixes that allows lazy computation of the fixes for an error.


Field Summary
static String PROP_COMPUTED
          PropertyChangeEvent with this name is fired when the list of the fixes is computed - no more changes are to be expeted after this.
static String PROP_FIXES
          PropertyChangeEvent with this name is fired when the list of the fixes is changed.
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener l)
          The registered PropertyChangeListener will recieve events with names PROP_COMPUTED and PROP_FIXES.
 List<Fix> getFixes()
          Getter for the current list of fixes.
 boolean isComputed()
          Returns true if the list of fixes will not changed anymore (it is computed).
 boolean probablyContainsFixes()
          Should return false if there will not be any fixes in the list for sure.
 void removePropertyChangeListener(PropertyChangeListener l)
          Allows to unregister a PropertyChangeListener.
 

Field Detail

PROP_FIXES

static final String PROP_FIXES
PropertyChangeEvent with this name is fired when the list of the fixes is changed.

See Also:
Constant Field Values

PROP_COMPUTED

static final String PROP_COMPUTED
PropertyChangeEvent with this name is fired when the list of the fixes is computed - no more changes are to be expeted after this.

See Also:
Constant Field Values
Method Detail

addPropertyChangeListener

void addPropertyChangeListener(PropertyChangeListener l)
The registered PropertyChangeListener will recieve events with names PROP_COMPUTED and PROP_FIXES.

Parameters:
l - the listener to be added

removePropertyChangeListener

void removePropertyChangeListener(PropertyChangeListener l)
Allows to unregister a PropertyChangeListener.

Parameters:
l - the listener to be removed

probablyContainsFixes

boolean probablyContainsFixes()
Should return false if there will not be any fixes in the list for sure. Should return true otherwise. Should run very fast - should not try to actualy compute the fixes.

Returns:
false if this list will never contain any fixes, true otherwise.

getFixes

List<Fix> getFixes()
Getter for the current list of fixes.

Returns:
the list of fixes

isComputed

boolean isComputed()
Returns true if the list of fixes will not changed anymore (it is computed).

Returns:
true if the list of fixes is computed.

org.netbeans.spi.editor.hints/0 1.24.0 7

Built on May 25 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.