com.togethersoft.openapi.sci
Interface SciParametrizedCompoundStatement


public interface SciParametrizedCompoundStatement
extends SciCompoundStatement

Represents compaund statement with parameter (argument).
For example 'synchronized' statement in Java or
'fixed', 'checked', 'unchecked' statements in C#

Author:
TogetherSoft
Since: Together 6.0

Method Summary
 SciObjectgetParameterObject()
          Provides access to a parameter of the statement.

Methods inherited from interface com.togethersoft.openapi.sci.SciCompoundStatement
getCodeBlock

Methods inherited from interface com.togethersoft.openapi.sci.SciStatement
accept, getContainingBlock, getKind, visitExpressions, visitExpressions, visitReferences, visitReferences

Methods inherited from interface com.togethersoft.openapi.sci.SciObject
canCut, canDelete, canReplace, copy, cut, delete, getContainingFile, getContainingScope, getLanguage, getPositions, getText, getUserProperty, isReadOnly, replace, setUserProperty

Method Detail

getParameterObject

public SciObject getParameterObject()
Provides access to a parameter of the statement. Runtime class of parameter object depend on the kind of statement.
It can be, for example, expression for 'synchronized' statement in Java
or element declaration for 'fixed' in C#.
Note that special case is 'using' in C#. Both, declaration and expression are allowed there.
Thus it is highly recommended to perform meaningful validation before starting any manipulations with the object returned.
Returns: parameter (argument) of compound statement.