net.sourceforge.nrl.parser.ast
Interface IMultipleContextDeclaration

All Superinterfaces:
IDeclaration, INRLAstNode
All Known Subinterfaces:
IActionFragmentDeclaration, IValidationFragmentDeclaration

public interface IMultipleContextDeclaration
extends IDeclaration

Any declaration that takes multiple contexts, with parameter names.


Field Summary
 
Fields inherited from interface net.sourceforge.nrl.parser.ast.INRLAstNode
NEWLINE
 
Method Summary
 List<String> getContextNames()
          Return the assigned context names - the "parameter names".
 IModelElement getContextType(String name)
          Given a parameter name, return its type.
 
Methods inherited from interface net.sourceforge.nrl.parser.ast.IDeclaration
getId
 
Methods inherited from interface net.sourceforge.nrl.parser.ast.INRLAstNode
accept, dump, getColumn, getLine, getUserData, setUserData
 

Method Detail

getContextNames

List<String> getContextNames()
Return the assigned context names - the "parameter names". These all become variables within the declaration.

Returns:
the names

getContextType

IModelElement getContextType(String name)
Given a parameter name, return its type. This will never return null after the AST has been resolved.

Parameters:
name - the parameter name
Returns:
its type


Copyright © 2006-2010 Christian Nentwich and others