Skip to content

class Constant

Package: swiss.avm.up.core.generic.type.javamodel.Constant

Direct Known Subclasses: StringConstant


class Constant extends AConstant, ValidatableType, IndexValue

A Constant is a named compile-time constant defined in a DatatypeLibrary - a shared value such as a limit, timing or size that code references instead of hardcoding the literal. AConstant is the abstract range used by the library.

Properties

comment

TextLiteral[0..1]

A Literal that accepts multiple lines of text.

name

The name of this Resource.

StringLiteral[1..1]

type

StandardType[1..1]

value

Init value

StringLiteral[1..1]

Method Summary

accept

@FCodeSnippet

Parameters:

ValidatableTypeVisitorLiteral

Return:

Void

getType

@FConvert

Return:

Type