org.apache.cxf.tools.common.toolspec.parser
Class Option
java.lang.Object
org.apache.cxf.tools.common.toolspec.parser.Option
- All Implemented Interfaces:
- TokenConsumer
public class Option
- extends Object
- implements TokenConsumer
argument
protected Element argument
annotation
protected Element annotation
Option
public Option(Element el)
hasArgument
public boolean hasArgument()
hasImmediateArgument
public boolean hasImmediateArgument()
accept
public boolean accept(TokenInputStream args,
Element result,
ErrorVisitor errors)
- Specified by:
accept
in interface TokenConsumer
- Returns:
- whether the first token was accepted
isSatisfied
public boolean isSatisfied(ErrorVisitor errors)
- Specified by:
isSatisfied
in interface TokenConsumer
getName
public String getName()
getAnnotation
public String getAnnotation()
getPrimarySwitch
public String getPrimarySwitch()
toString
public String toString()
- Overrides:
toString
in class Object
Apache CXF