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 Element
annotation
protected Element
argument
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(TokenInputStream args, Element result, ErrorVisitor errors)
String
getAnnotation()
String
getName()
String
getPrimarySwitch()
boolean
hasArgument()
boolean
hasImmediateArgument()
boolean
isSatisfied(ErrorVisitor errors)
String
toString()
-
-
-
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:
accept
in interfaceTokenConsumer
- Returns:
- whether the first token was accepted
-
isSatisfied
public boolean isSatisfied(ErrorVisitor errors)
- Specified by:
isSatisfied
in interfaceTokenConsumer
-
getName
public String getName()
-
getAnnotation
public String getAnnotation()
-
getPrimarySwitch
public String getPrimarySwitch()
-
-