Static field and method access

Syntax

className.fieldName
or
className.methodName(arguments)

where:

Description

Static fields and methods can be queried for a specific class.

The class may be referenced using a qualified name (dotted notation including the package name) or using a simple name. When a simple name is used, the referenced class is first searched in the current package. If the class is not found, then it is resolved using the defined import statements.

The referenced field or method must be public and static.

Examples

// Access to the UML public visibility value
com.sodius.mdw.metamodel.uml21.VisibilityKind.PUBLIC

// Retrieves a system property (static method getProperty() of the class java.lang.System)
System.getProperty("myProperty")