SmartFrog 3.10.000

org.smartfrog.sfcore.languages.sf.sfcomponentdescription
Class ResolutionState

java.lang.Object
  extended by org.smartfrog.sfcore.languages.sf.sfcomponentdescription.ResolutionState

public class ResolutionState
extends java.lang.Object

Encapsulates the state that is maintained during type, place, and deployment resolution. During all recursive resolution phases, state needs to be maintained about whether any resolutions still need to be done after the phase, and if any were actually resolved in this phase.


Field Summary
protected  boolean haveResolved
          Stores whether something was resolved.
protected  java.util.Vector unresolved
          Stores the unresolved values.
 
Constructor Summary
ResolutionState()
          Constructs the ResolutionState object.
 
Method Summary
 void addUnresolved(java.lang.Object val)
          Adds an unresovled element to the unresolved list.
 void addUnresolved(java.lang.Object val, Reference source)
          Adds an unresolved element with a source reference to the unresolved table.
 void clear()
          Clears the state to have no unresolved elements with nothing resolved yet.
 boolean haveResolved()
          Returns whether anything was resolved.
 void haveResolved(boolean val)
          Sets the have resolved flag.
 boolean moreToResolve()
          Checks if doing another resolution phase would make sense.
 java.util.Vector unresolved()
          Returns the unresolved elements.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

unresolved

protected java.util.Vector unresolved
Stores the unresolved values.


haveResolved

protected boolean haveResolved
Stores whether something was resolved.

Constructor Detail

ResolutionState

public ResolutionState()
Constructs the ResolutionState object.

Method Detail

clear

public void clear()
Clears the state to have no unresolved elements with nothing resolved yet.


haveResolved

public boolean haveResolved()
Returns whether anything was resolved.

Returns:
true if anything was resolved, false if not

haveResolved

public void haveResolved(boolean val)
Sets the have resolved flag.

Parameters:
val - new value for glag

unresolved

public java.util.Vector unresolved()
Returns the unresolved elements.

Returns:
unresolved elements

addUnresolved

public void addUnresolved(java.lang.Object val)
Adds an unresovled element to the unresolved list.

Parameters:
val - unresolved object to add to state

addUnresolved

public void addUnresolved(java.lang.Object val,
                          Reference source)
Adds an unresolved element with a source reference to the unresolved table.

Parameters:
val - value that was unresolved
source - source that held the value

moreToResolve

public boolean moreToResolve()
Checks if doing another resolution phase would make sense. There is more to resolve if there are any unresolved items and something was resolved in the last cycle.

Returns:
true if more to resolve, false otherwise

SmartFrog CORE 3.10.000

(C) Copyright 1998-2006 Hewlett-Packard Development Company, LP