public interface CommonHandle extends WrappedResource
attribute or method | API |
---|---|
TYPE | getResourceType() |
readOnlyError(String)
API is emitted only in cases when the
conversion rules decide that the given attribute is used on the right side
of an assignment, but that attribute is read-only.Modifier and Type | Method and Description |
---|---|
character |
getResourceType()
Get the type of this handle.
|
void |
readOnlyError(java.lang.String attribute)
Deprecated.
Use the overloaded method with multiple arguments.
This API is deprecated because of two reasons: first, it looses the possible side effect of the assigned expression (consider the case when it is a function or method, but not exclusively). Secondly, some (if not all) are unknown value sensitive, meaning that, prior testing whether this is a writable attribute, P4GL checks first if the expression is unknown and if this value is supported. In this case a different error condition is raised. |
void |
readOnlyError(java.lang.String attribute,
java.lang.Object expr)
Shows a specific error, as this read-only
attribute was used on the right-side of an assignment. |
id, id, unknown, valid
character getResourceType()
@Deprecated void readOnlyError(java.lang.String attribute)
This API is deprecated because of two reasons: first, it looses the possible side effect of the assigned expression (consider the case when it is a function or method, but not exclusively). Secondly, some (if not all) are unknown value sensitive, meaning that, prior testing whether this is a writable attribute, P4GL checks first if the expression is unknown and if this value is supported. In this case a different error condition is raised.
attribute
was used on the right-side of an assignment.attribute
- The read-only attribute.void readOnlyError(java.lang.String attribute, java.lang.Object expr)
attribute
was used on the right-side of an assignment.
If the expr
is evaluated to ?
(unknown value) and this attribute does not support it,
a specific error is raised.attribute
- The read-only attribute.expr
- The expression whose value was attempted to be assigned to READ-ONLY attribute.