public abstract class FeatureCallExpression extends Expression
Modifier and Type | Field and Description |
---|---|
protected boolean |
arrow |
protected NameExpression |
nameExpression
The feature name expression.
|
protected Expression |
targetExpression |
resolvedType
Constructor and Description |
---|
FeatureCallExpression() |
Modifier and Type | Method and Description |
---|---|
void |
build(AST cst,
IModule module) |
protected AbstractOperation |
getAbstractOperation(Object target,
String name,
IModel owningModel,
IEolContext context) |
String |
getName()
Convenience method for
getNameExpression().getName() . |
NameExpression |
getNameExpression() |
protected AbstractOperation |
getOperationFromContext(Object target,
String name,
IModel owningModel,
IEolContext context) |
Expression |
getTargetExpression() |
boolean |
isArrow() |
void |
setNameExpression(NameExpression nameExpression) |
void |
setTargetExpression(Expression targetExpression) |
getResolvedType, hasResolvedType
equals, getChildren, getComments, getDebugInfo, getFile, getModule, getParent, getRegion, getUri, hashCode, setModule, setParent, setRegion, setUri, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
execute
getChildren, getFile, getModule, getParent, getRegion, getUri, setModule, setParent, setRegion, setUri
compile
protected boolean arrow
protected Expression targetExpression
protected NameExpression nameExpression
public boolean isArrow()
public void build(AST cst, IModule module)
build
in interface ModuleElement
build
in class AbstractModuleElement
protected AbstractOperation getAbstractOperation(Object target, String name, IModel owningModel, IEolContext context) throws EolIllegalOperationException
EolIllegalOperationException
protected AbstractOperation getOperationFromContext(Object target, String name, IModel owningModel, IEolContext context) throws EolIllegalOperationException
target
- name
- The requested operation nameowningModel
- context
- The context from which the EolOperationFactory is derived.EolIllegalOperationException
public Expression getTargetExpression()
public void setTargetExpression(Expression targetExpression)
public void setNameExpression(NameExpression nameExpression)
nameExpression
- public NameExpression getNameExpression()
public String getName()
getNameExpression().getName()
.null
if absent.Copyright © 2020. All rights reserved.