- All Implemented Interfaces:
Serializable,Comparable<Entity.EntityKind>,Constable
- Enclosing interface:
Entity
The different kinds of Entity.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn ACSL behavior, named by the token between the keywordbehaviorand the symbol:.An enumeration, the entity corresponding to an occurrence of anenumdefinition in a program.An enumerator, the identifier that occurs in the list inside anenumdefinition.A field, the entity corresponding to a field declaration in the list inside a completestructoruniondefinition.A function.An ordinary label, which occurs in a labeled statement of the formlabelName : stmt.A pragma domain, named by the first token following the# pragmain a pragma.A structure or union, the entity corresponding to an occurrence ofstructorunionin the program.A typedef, the entity corresponding to an occurrence oftypedefin the program.A variable: this is the static notion of variable. -
Method Summary
Modifier and TypeMethodDescriptionstatic Entity.EntityKindReturns the enum constant of this class with the specified name.static Entity.EntityKind[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
VARIABLE
A variable: this is the static notion of variable. A variable is named thing that can store a value. Note that a single variable can be declared multiple times in C. -
FUNCTION
A function. A function is a thing that takes inputs, executes a statement and possibly returns a result. Note that a function can be declared multiple times in C, but should be defined at most once. -
TYPEDEF
A typedef, the entity corresponding to an occurrence oftypedefin the program. The typedef binds an identifier to a type. -
STRUCTURE_OR_UNION
A structure or union, the entity corresponding to an occurrence ofstructorunionin the program. -
ENUMERATION
An enumeration, the entity corresponding to an occurrence of anenumdefinition in a program. Note that an enumeration can be declared multiple times, but at most one instance can be complete, i.e., contain the curly brackets with the enumerator list. -
ENUMERATOR
An enumerator, the identifier that occurs in the list inside anenumdefinition. An enumerator is an enumeration constant and in C has a constant integer value. -
FIELD
A field, the entity corresponding to a field declaration in the list inside a completestructoruniondefinition. -
LABEL
An ordinary label, which occurs in a labeled statement of the formlabelName : stmt. (Note that neither thecasenordefaultconstructs in aswitchstatement generate an entity.) -
PRAGMA_HANDLER
A pragma domain, named by the first token following the# pragmain a pragma. For example, all OpenMP pragmas begin# pragma omp; theompnames an entity which is the OpenMP pragma domain. Each pragma domain may have a pragma handler which is used to process pragmas of its domain. -
BEHAVIOR
An ACSL behavior, named by the token between the keywordbehaviorand the symbol:.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-