public class Option extends Object implements TokenConsumer
Modifier and Type | Field and Description |
---|---|
protected Element |
annotation |
protected Element |
argument |
Modifier and Type | Method and 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() |
public Option(Element el)
public boolean hasArgument()
public boolean hasImmediateArgument()
public boolean accept(TokenInputStream args, Element result, ErrorVisitor errors)
accept
in interface TokenConsumer
public boolean isSatisfied(ErrorVisitor errors)
isSatisfied
in interface TokenConsumer
public String getName()
public String getAnnotation()
public String getPrimarySwitch()
Apache CXF