public final class NegateOperation extends java.lang.Object implements IUnaryOperation
| Property Name | Property Description |
operand | This expression produces the operation's only operand. |
location | This is the source-location information regarding this construct. |
This file was auto-generated on (Sun May 31 11:54:12 EDT 2015).
| Constructor and Description |
|---|
NegateOperation() |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(IAstVisitor visitor)
This method welcomes a visitor that wants to visit this object.
|
NegateOperation |
copy()
This method creates a shallow copy of this object.
|
static NegateOperation |
create(IExpression operand,
SourceLocation location)
This method creates a new instance of this class.
|
SourceLocation |
getLocation()
Getter.
|
IExpression |
getOperand()
Getter.
|
NegateOperation |
setLocation(SourceLocation value)
Setter.
|
NegateOperation |
setOperand(IExpression value)
Setter.
|
java.util.Map<java.lang.String,java.lang.Object> |
toMap()
This method creates a map representation of this struct.
|
java.lang.String |
toString() |
public NegateOperation setOperand(IExpression value)
setOperand in interface IUnaryOperationvalue - is the new value of property operand.operand set to value.public IExpression getOperand()
getOperand in interface IUnaryOperationoperand.public NegateOperation setLocation(SourceLocation value)
setLocation in interface IConstructvalue - is the new value of property location.location set to value.public SourceLocation getLocation()
getLocation in interface IConstructlocation.public static NegateOperation create(IExpression operand, SourceLocation location)
operand - is the value for property operand.location - is the value for property location.public void accept(IAstVisitor visitor)
accept in interface IConstructvisitor - is the visitor that is visiting this object.public NegateOperation copy()
copy in interface IConstructpublic java.util.Map<java.lang.String,java.lang.Object> toMap()
Each key is the name of a field. Each value is the result of calling the key field's getter.
public java.lang.String toString()
toString in class java.lang.Object