ptolemy.data.expr
Interface ScopeExtender

All Known Implementing Classes:
ScopeExtendingAttribute

public interface ScopeExtender

A marker interface for attributes that extend their container's scope. Any parameter contained by an attribute implementing this interface has the same visibility as parameters of the container of the attribute.

Version:
$Id: ScopeExtender.java,v 1.7 2004/04/13 05:12:11 cxh Exp $
Author:
Xiaojun Liu
See Also:
Variable

Method Summary
 java.util.List attributeList()
          Return a list of the attributes contained by this object.
 Attribute getAttribute(java.lang.String name)
          Get the attribute with the given name.
 

Method Detail

attributeList

public java.util.List attributeList()
Return a list of the attributes contained by this object. If there are no attributes, return an empty list. This method is read-synchronized on the workspace.

Returns:
An unmodifiable list of instances of Attribute.

getAttribute

public Attribute getAttribute(java.lang.String name)
Get the attribute with the given name. The name may be compound, with fields separated by periods, in which case the attribute returned is contained by a (deeply) contained attribute.

Parameters:
name - The name of the desired attribute.
Returns:
The requested attribute if it is found, null otherwise.