public class Choice extends java.lang.Object implements Named
A choice is represented by a string, where the category is separated by the option with a colon.
Choices can be declared within KeY files. They influence the activation of taclets.
ParsingFacade.getChoices(List)
Constructor and Description |
---|
Choice(Name name,
java.lang.String category) |
Choice(java.lang.String choice,
java.lang.String category)
Creates a choice object with name <category>:<choice>.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
category() |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
Name |
name()
returns the name of this element
|
java.lang.String |
toString() |
public Choice(java.lang.String choice, java.lang.String category)
public Choice(@Nonnull Name name, @Nonnull java.lang.String category)
@Nonnull public Name name()
Named
@Nonnull public java.lang.String category()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2003-2019 The KeY-Project.