JeeWiz Home  
The Model-Driven System Builder

JeeWiz Architect's Guide
 
Contents  >   13.  'Java' Reference
 


13.8 Method Object

Used on
jwclass
SuperclassinterfaceMethod
Subclassed By
constructor
DescriptionA method on a class
Contained
Lists
1
Name  parameter
Type  parameter
Inherited from  interfaceMethod
 
2
Name  exception
Type  String
Inherited from  interfaceMethod
Inherited
properties
name from interfaceMethod.name

description from jar.description

template from referenceType.template

jwpattern (base property)

returnType from interfaceMethod.returnType

annotation from jwclass.annotation

 13.8.1  Property 'access'
 13.8.2  Property 'abstract'
 13.8.3  Property 'static'
 13.8.4  Property 'final'
 13.8.5  Property 'synchronized'
 13.8.6  Property 'native'
 13.8.7  Property 'text'
 13.8.8  Property 'generateLogLevel'

13.8.1  Property 'access'
DescriptionSpecifies 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.
TypeString
Choices private (default)
protected
public
Default\null

13.8.2  Property 'abstract'
DescriptionThis is the 'abstract' modifier, as used on interfaces, jwclasses and methods.
Typeboolean
Defaultfalse

13.8.3  Property 'static'
DescriptionThis is the 'static' modifier.
Typeboolean
Defaultfalse

13.8.4  Property 'final'
DescriptionThis 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.
Typeboolean
Defaultfalse

13.8.5  Property 'synchronized'
DescriptionThis is the Java 'synchronized' modifier for methods. In C#, it will be turned into 'lock' or 'MethodImplOptions.Synchronized' as appropriate.
Typeboolean
Defaultfalse

13.8.6  Property 'native'
DescriptionThis is the Java 'native' modifier for methods. (Becomes 'extern' in C#, probably.)
Typeboolean
Defaultfalse

13.8.7  Property 'text'
DescriptionThe '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.
TypeString

13.8.8  Property 'generateLogLevel'
DescriptionShould 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.
TypeString
Delegatestrue
 


Copyright (c) 2001-2008 New Technology/enterprise Ltd.