com.togethersoft.openapi.sci
Interface SciMemberAccessExpression


public interface SciMemberAccessExpression
extends SciExpression

An expression of accessing an object's member.


The getObjectExpression method returns an expression for an object,
while getMemberExpression
returns an expression for its member. Consider this example:



someObject.someMember();

It is a FunctionCallExpression. Its method getFunction will return an expression
for someObject.someMember. And for that expression
methods getObjectExpression and getMemberExpression will return expressions
for someObject and someMember respectively.

Author:
TogetherSoft
Since: Together 3.0
See Also: SciExpression, SciFunctionCallExpression.getFunction(), getObjectExpression(), getMemberExpression()

Method Summary
 StringgetAccessOperation()
          Returns a string containing a syntax construction for accessing an object's members.
 SciExpressiongetMemberExpression()
          Returns an expression for the member in this member access expression.
 SciExpressiongetObjectExpression()
          Returns an expression for the object in this member access expression.
 voidsetAccessOperation(String operation)
          Sets the member access operation in this expression to the specified string value.

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

getAccessOperation

public String getAccessOperation()
Returns a string containing a syntax construction for accessing an object's members. For example, "." or
"->"
Returns: a string containing a syntax construction for accessing an object's members
See Also:
setAccessOperation(java.lang.String)

getMemberExpression

public SciExpression getMemberExpression()
Returns an expression for the member in this member access expression.
Returns: an expression for the member in this member access expression
See Also:
getObjectExpression()

getObjectExpression

public SciExpression getObjectExpression()
Returns an expression for the object in this member access expression.
Returns: an expression for the object in this member access expression
See Also:
getMemberExpression()

setAccessOperation

public void setAccessOperation(String operation)
Sets the member access operation in this expression to the specified string value.
Parameters:
operation the string containing a new type of an operation for accessing a member in this expression
See Also:
getAccessOperation()