SmartFrog 3.10.000

org.smartfrog.sfcore.languages.csf.csfcomponentdescription
Class FreeVar

java.lang.Object
  extended by org.smartfrog.sfcore.languages.csf.csfcomponentdescription.FreeVar
All Implemented Interfaces:
Copying

public class FreeVar
extends java.lang.Object
implements Copying

Define a TBD entry in the syntax. Is used as a free variable to be bound by coonstraint resolution.


Constructor Summary
FreeVar()
           
FreeVar(int id)
           
FreeVar(java.lang.String image)
           
 
Method Summary
 java.lang.Object clone()
          Creates a shallow copy of the implementor.
 java.lang.Object copy()
          Create a deep copy of object.
 void doLinkResolve(ResolutionState resState)
          Internal recursive method for doing the actual link resolution.
 void doPlaceResolve(ResolutionState resState)
          Internal recursive method for doing the actual placement resolution.
 void doTypeResolve(ResolutionState resState)
          Internal recursive method for doing the actual type resolution.
 int getId()
           
 void linkResolve()
          Internal method that performs a pre-deployment resolution on the object implementing this interface.
 void placeResolve()
          Internal method that place resolves a parsed component.
 java.lang.String toString()
           
 void typeResolve()
          Internal method that type resolves a parsed component.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FreeVar

public FreeVar()

FreeVar

public FreeVar(int id)

FreeVar

public FreeVar(java.lang.String image)
Method Detail

placeResolve

public void placeResolve()
                  throws SmartFrogCompileResolutionException
Internal method that place resolves a parsed component. Place resolving places all attributes which have a reference (eager) as attribute name in their target component.

Throws:
SmartFrogCompileResolutionException - failed to place resolve

doPlaceResolve

public void doPlaceResolve(ResolutionState resState)
                    throws SmartFrogCompileResolutionException
Internal recursive method for doing the actual placement resolution. Implementors place any attributes with an eager reference as key in the prospective component.

Parameters:
resState - resolution state
Throws:
SmartFrogCompileResolutionException - failed to place resolve

typeResolve

public void typeResolve()
                 throws SmartFrogCompileResolutionException
Internal method that type resolves a parsed component. Place resolving finds all supertypes and flattens them out.

Throws:
SmartFrogCompileResolutionException - failed to type resolve

doTypeResolve

public void doTypeResolve(ResolutionState resState)
                   throws SmartFrogCompileResolutionException
Internal recursive method for doing the actual type resolution.

Parameters:
resState - resolution state
Throws:
SmartFrogCompileResolutionException - failed to type resolve

linkResolve

public void linkResolve()
                 throws SmartFrogCompileResolutionException
Internal method that performs a pre-deployment resolution on the object implementing this interface. Pre-deployment resolution means finding all eager reference values, resolving them, and copying the result into the target component

Throws:
SmartFrogCompileResolutionException - failed to deploy resolve

doLinkResolve

public void doLinkResolve(ResolutionState resState)
                   throws SmartFrogCompileResolutionException
Internal recursive method for doing the actual link resolution.

Parameters:
resState - resolution state
Throws:
SmartFrogCompileResolutionException - failed to deploy resolve

getId

public int getId()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

copy

public java.lang.Object copy()
Description copied from interface: Copying
Create a deep copy of object.

Specified by:
copy in interface Copying
Returns:
deep copy of object

clone

public java.lang.Object clone()
Description copied from interface: Copying
Creates a shallow copy of the implementor.

Specified by:
clone in interface Copying
Overrides:
clone in class java.lang.Object
Returns:
shallow copy

SmartFrog CORE 3.10.000

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