macros
Class CLASS

java.lang.Object
  |
  +--jatha.Macro
        |
        +--macros.CLASS

public class CLASS
extends Macro

CLASS(name)

The CLASS macro provides very little utility on its own, but it is necessary in order to use the CTOR macro later. Example:

 public @CLASS(MyClass) {
     ...
 }
 

Will generate this:

 public class MyClass {
     ...
 }
 

This macro only comes in handy when used together with other macros, because it leaves a message recording the name of the class. For example, the CTOR macro uses this message so that you don't need to tell it the name of the class.

See Also:
CTOR

Fields inherited from class jatha.Macro
util
 
Constructor Summary
CLASS()
           
 
Method Summary
 void expand(java.lang.String[] args, java.io.Writer out, Expander expander)
          Expands the macro
 
Methods inherited from class jatha.Macro
expand
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CLASS

public CLASS()
Method Detail

expand

public void expand(java.lang.String[] args,
                   java.io.Writer out,
                   Expander expander)
            throws java.io.IOException
Expands the macro
Overrides:
expand in class Macro