com.togethersoft.openapi.sci
Interface SciDirectInitExpression


public interface SciDirectInitExpression
extends SciExpression

SciDirectInitExpression represents an expression used to initialize variable (or attribute)
in the form Point point(10, 10); or int value(10);
In this case expression has kind SciExpressionKind.DIRECT_INIT_VARIABLE.
As well it is used to represent an expression inside list of base classes or members initializations
appeared in definition of c++ constructor like
Rectangle(int x, int y, int edge) : Shape(x, y), myEdgeLength(edge) {}
In this case expression has kind SciExpressionKind.DIRECT_INIT_BASE_OR_MEMBER.


getReference() method in second returns SciExpression that represents a reference
to base class or memeber in case of bease or memeber initialization.


getParametersList method returns SciExpressionList object from which
it is possible to extract information about each operand of expression in the same way as for SciFunctionCallExpression.

Author:
TogetherSoft
Since: Together 6.0
See Also: SciExpressionKind.DIRECT_INIT_VARIABLE, SciExpressionKind.DIRECT_INIT_BASE_OR_MEMBER, SciExpressionList, SciFunctionCallExpression

Method Summary
 SciExpressionListgetParametersList()
           
 SciExpressiongetReference()
          Returns SciExpression representing reference to initialized object in case of base class or member initialization in constructor.

Methods inherited from interface com.togethersoft.openapi.sci.SciExpression
accept, getKind, getOwner, getParent, getType, operands, 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

getParametersList

public SciExpressionList getParametersList()

getReference

public SciExpression getReference()
Returns SciExpression representing reference to initialized object in case of base class or member initialization in constructor.
Returns: SciExpression representing reference to initialized object in case of base class or member initialization in constructor.
See Also:
SciReferenceExpression