Class Option
- java.lang.Object
-
- org.apache.cxf.tools.common.toolspec.parser.Option
-
- All Implemented Interfaces:
TokenConsumer
public class Option extends Object implements TokenConsumer
-
-
Field Summary
Fields Modifier and Type Field Description protected Elementannotationprotected Elementargument
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(TokenInputStream args, Element result, ErrorVisitor errors)StringgetAnnotation()StringgetName()StringgetPrimarySwitch()booleanhasArgument()booleanhasImmediateArgument()booleanisSatisfied(ErrorVisitor errors)StringtoString()
-
-
-
Constructor Detail
-
Option
public Option(Element el)
-
-
Method Detail
-
hasArgument
public boolean hasArgument()
-
hasImmediateArgument
public boolean hasImmediateArgument()
-
accept
public boolean accept(TokenInputStream args, Element result, ErrorVisitor errors)
- Specified by:
acceptin interfaceTokenConsumer- Returns:
- whether the first token was accepted
-
isSatisfied
public boolean isSatisfied(ErrorVisitor errors)
- Specified by:
isSatisfiedin interfaceTokenConsumer
-
getName
public String getName()
-
getAnnotation
public String getAnnotation()
-
getPrimarySwitch
public String getPrimarySwitch()
-
-