|
|
|
The Model-Driven System Builder
|
|
JeeWiz Architect's Guide
|
|
|
|
Contents >
13. 'Java' Reference
|
|
|
13.7 Jwclass Object
| Superclass | referenceType |
| Description | This defines a class. It is called 'jwclass' rather than 'class' to avoid conflict with the Java 'Class' class.
|
| Implements | ClassSpec |
Contained Lists |
| 1 |
|
| |
| 2 |
|
| |
| 3 |
| Name | field |
| Type | field |
| Description | List of field members
|
| Indexed property | name |
|
| |
| 4 |
| Name | method |
| Type | method |
| Description | List of methods, including constructors, on the class.
|
| Indexed property | name |
|
| |
| 5 |
| Name | implements |
| Type | String |
| Description | Specifies the interface(s) which this class implements.
|
| Unique | false |
|
|
| Validation |
The 'extends' property for a jwclass must name another jwclass
|
Inherited properties |
|
13.7.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.7.2 Property 'annotation'
|
| Description | An optional list, comma-separated, of Java annotations.
|
| Type | String |
13.7.3 Property 'abstract'
|
| Description | This is the 'abstract' modifier, as used on interfaces, jwclasses and methods.
|
| Type | boolean |
| Default | false |
13.7.4 Property 'static'
|
| Description | This is the 'static' modifier.
|
| Type | boolean |
| Default | false |
13.7.5 Property 'serializable'
|
| Description | This is the 'serializable' modifier.
|
| Type | boolean |
| Default | false |
13.7.6 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.7.7 Property 'text'
|
| Description | The 'text' is the code insert for the body of the method - the text between the '{' and '}' brackets.
If the method has a return value, you should write the return statement too.
|
| Type | String |
13.7.8 Property 'generateLogLevel'
|
| Overrides | jwclass.generateLogLevel |
| Description | Should be a number for the trace level priority to generate code.
Any lower priority traces will be filtered out at *generate* time.
Most tracing mechanisms, such as log4j, can also filter traces at run-time.
The priorities are
- 1 = Fatal
- 2 = Error
- 4 = Warning
- 6 - Info
- 8 - Debug (Fine)
- 9 - DetailedDebug (Finest)
This is a delegated property.
The default can be set for builds by setting generateLogLevel in the build properties.
|
| Type | String |
| Delegates | true |
Copyright (c) 2001-2008 New Technology/enterprise Ltd.
| |