uk.ac.ncl.cs.instantsoap.commandlineprocessor.commandLine
Class Argument<Value>

java.lang.Object
  extended by uk.ac.ncl.cs.instantsoap.commandlineprocessor.commandLine.Argument<Value>
Direct Known Subclasses:
Option, Parameter

public abstract class Argument<Value>
extends Object

A command-line argument - either an Option or a Parameter.

Author:
Matthew Pocock

Nested Class Summary
static interface Argument.ArgumentVisitor<Value>
          Visitor interface so that you can avoid instanceof checks.
 
Constructor Summary
Argument()
           
 
Method Summary
abstract  void visit(Argument.ArgumentVisitor<Value> visitor)
          Visit this argument, triggering the handle method of the visitor specific to the concrete class of the argument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Argument

public Argument()
Method Detail

visit

public abstract void visit(Argument.ArgumentVisitor<Value> visitor)
Visit this argument, triggering the handle method of the visitor specific to the concrete class of the argument.

Parameters:
visitor - the argumentVisitor that should visit this argument


Copyright © 2006-2008. All Rights Reserved.