public abstract class InvariantBinding extends AbstractBinding
AbstractBinding
with a description and a binding type, with
invariant forced to true.Modifier and Type | Field and Description |
---|---|
protected String |
description |
Constructor and Description |
---|
InvariantBinding(Location location,
Class bindingType,
String description) |
Modifier and Type | Method and Description |
---|---|
Class |
getBindingType()
Returns the actual class, by invoking
Binding.get() . |
boolean |
isInvariant()
Returns true.
|
String |
toString() |
getAnnotation, getBindingGenericType, set
getLocation
protected final String description
public InvariantBinding(Location location, Class bindingType, String description)
public boolean isInvariant()
isInvariant
in interface Binding
isInvariant
in class AbstractBinding
public Class getBindingType()
AbstractBinding
Binding.get()
. Subclasses may override this method to work more
efficiently (say, when the binding type is known statically).getBindingType
in interface Binding
getBindingType
in class AbstractBinding
5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.