org.webmacro.directive
Class Directive.OptionalSubdirective

java.lang.Object
  extended byorg.webmacro.directive.Directive.ArgDescriptor
      extended byorg.webmacro.directive.Directive.Subdirective
          extended byorg.webmacro.directive.Directive.OptionalSubdirective
Direct Known Subclasses:
Directive.OptionalRepeatingSubdirective
Enclosing class:
Directive

public static class Directive.OptionalSubdirective
extends Directive.Subdirective

Optional subdirective. This means that the subdirective can appear zero or one time.


Field Summary
 
Fields inherited from class org.webmacro.directive.Directive.Subdirective
args, BREAKING, isBreaking, name, repeating
 
Fields inherited from class org.webmacro.directive.Directive.ArgDescriptor
children, id, keyword, nextArg, optional, subordinateArgs, type
 
Constructor Summary
Directive.OptionalSubdirective(int id, java.lang.String name, Directive.ArgDescriptor[] args)
           
Directive.OptionalSubdirective(int id, java.lang.String name, Directive.ArgDescriptor[] args, int flags)
           
 
Methods inherited from class org.webmacro.directive.Directive.ArgDescriptor
setOptional, setSubordinateArgs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Directive.OptionalSubdirective

public Directive.OptionalSubdirective(int id,
                                      java.lang.String name,
                                      Directive.ArgDescriptor[] args)

Directive.OptionalSubdirective

public Directive.OptionalSubdirective(int id,
                                      java.lang.String name,
                                      Directive.ArgDescriptor[] args,
                                      int flags)