public class WhileyFile.Constant extends WhileyFile.NamedDeclaration
ConstantDeclaration ::= "constant" Identifier "is" ExpressionA simple example to illustrate is:
constant PI is 3.141592654Here, we are defining a constant called
PI which represents
the decimal value "3.141592654". Constant declarations may also have
modifiers, such as public and private.| Modifier and Type | Field and Description |
|---|---|
Expr |
constant |
Constant |
resolvedValue |
| Constructor and Description |
|---|
Constant(List<Modifier> modifiers,
Expr constant,
String name,
wybs.lang.Attribute... attributes) |
Copyright © 2017. All rights reserved.