PTPrefixExpression
This type is a class for model objects.
A one operand operator, where the operator comes before the operand, e.g. - (x+3). In AST, even -3 is modeled as a PrefixExpression of operator "-" and expression of NumberLiteral(3). But we optimize this away and just use a NumberLiteral(-3) directly instead.
Package: instantiation
Supertype: PTExpression
Classifier ID: -1
Instance class name: * Unspecified *
Instance class: * Unspecified *
Attributes Summary operator : PTPrefixOperator The operator of this expression. expression : PTExpression @ The expression that the operator is applied to.
Attribute Details
operator - The operator of this expression.
Data Type: PTPrefixOperator
Default value: unspecified
Allowed values:
0 - PLUS
1 - MINUS
2 - COMPLEMENT
3 - NOT
Required: false
Changeable: true
Unsettable: false
Many: false
Ordered: true
Lower bound: 0
Upper bound: 1
Unique: true
Derived: false
Transient: false
Volatile: false
expression - The expression that the operator is applied to.
Reference Type: PTExpression @
Containment: true
Container: false
Required: false
Changeable: true
Unsettable: false
Many: false
Ordered: true
Lower bound: 0
Upper bound: 1
Unique: true
Derived: false
Transient: false
Volatile: false
(C) COPYRIGHT International Business Machines Corp. 1996-2006