public interface Constant
getType()
to provide wrapped return Type of Constant,
getName()
the Name of constant and the getValue()
for
providing of value assigned to Constant. To determine of which type the
constant value is it is recommended firstly to retrieve Type from constant.
The Type interface holds base information like java package name and java
type name (e.g. fully qualified name). From this string user should be able
to determine to which type can be getValue()
type typecasted to
unbox and provide value assigned to constant.Modifier and Type | Method and Description |
---|---|
Type |
getDefiningType()
Returns the Type that declares constant.
|
String |
getName()
Returns the name of constant.
|
Type |
getType()
Returns the return Type (or just Type) of the Constant.
|
Object |
getValue()
Returns boxed value that is assigned for context.
|
String |
toFormattedString()
Returns Constant definition in formatted string.
|
Type getDefiningType()
Type getType()
String getName()
Object getValue()
String toFormattedString()
public final
static [Type] CONSTANT_NAME = [value];
Copyright © 2019 OpenDaylight. All rights reserved.