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 java.lang.String |
description |
| Constructor and Description |
|---|
InvariantBinding(Location location,
java.lang.Class bindingType,
java.lang.String description) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class |
getBindingType()
Returns the actual class, by invoking
Binding.get(). |
boolean |
isInvariant()
Returns true.
|
java.lang.String |
toString() |
getAnnotation, getBindingGenericType, setgetLocationprotected final java.lang.String description
public InvariantBinding(Location location, java.lang.Class bindingType, java.lang.String description)
public boolean isInvariant()
isInvariant in interface BindingisInvariant in class AbstractBindingpublic java.lang.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 AbstractBindingpublic java.lang.String toString()
toString in class java.lang.Object${project.version} - Copyright © 2003-2015 The Apache Software Foundation.