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, setgetLocationprotected final String description
public InvariantBinding(Location location, Class bindingType, String description)
public boolean isInvariant()
isInvariant in interface BindingisInvariant in class AbstractBindingpublic Class getBindingType()
AbstractBindingBinding.get(). Subclasses may override this method to work more
efficiently (say, when the binding type is known statically).getBindingType in interface BindinggetBindingType in class AbstractBinding5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.