IsSimpleIsSimple
-
Has the Mapping been simplified?
- Description:
- This attribute indicates whether a MappingMapping has been simplified
by the
astSimplifyastSimplify
method. If the IsSimple value is non-zero, then the Mapping has
been simplified and so there is nothing to be gained by simplifying
it again. Indeed, the
astSimplify
method will immediately return the Mapping unchanged if the IsSimple
attribute indicates that the Mapping has already been simplified.
- Type:
- Integer (boolean), read-only.
- Class Applicability:
-
Mapping
-
All Mappings have this attribute.
-
FrameFrame
-
All classes of Frame return zero for the IsSimple attribute.
This is because changes can be made to a Frame which affect the
Mapping represented by the Frame, and so there can be no
guarantee that the Mapping may not need re-simplifying. Most
non-Frame Mappings, on the other hand, are immutable and so when
they are simplified it is certain that they weill remain in a
simple state.