|
|
|
The Model-Driven System Builder
|
|
JeeWiz Architect's Guide
|
|
|
|
Contents >
13. 'Java' Reference
|
|
|
13.2 Field Object
| Used on |
|
| Superclass | interfaceField |
| Description | A field on a class.
|
Inherited properties |
|
13.2.1 Property 'access'
|
| Description | Specifies the access control for the attribute.
The default access is specifically null, so that there is no access control value placed in the code.
This is necessary because the default for the access changes depending on the context.
|
| Type | String |
| Choices |
private (default)
protected
public
|
| Default | \null |
13.2.2 Property 'static'
|
| Description | This is the 'static' modifier.
|
| Type | boolean |
| Default | false |
13.2.3 Property 'final'
|
| Description | This is the Java 'final' attribute.
There are two methods for reading this out, for use on a field or on a class, because these have different names in CSharp.
The generic 'getFinalText()' is used on parameters in Java.
|
| Type | boolean |
| Default | false |
13.2.4 Property 'volatile'
|
| Description | This is the 'volatile' modifier for fields.
|
| Type | boolean |
| Default | false |
13.2.5 Property 'readonly'
|
| Description | This is the 'readonly' modifier (which is used for fields that will be initialised once at run-time, but cannot then be set).
Read-only is a C# concept. If you are only interested in creating Java programs, you do not need to bother with read-only - use 'final' instead.
(But if you are creating a definition to target C# as well as Java, you should use the "readonly" property.)
|
| Type | boolean |
| Default | false |
Copyright (c) 2001-2008 New Technology/enterprise Ltd.
| |