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, set
getLocation
protected final java.lang.String description
public InvariantBinding(Location location, java.lang.Class bindingType, java.lang.String description)
public boolean isInvariant()
isInvariant
in interface Binding
isInvariant
in class AbstractBinding
public java.lang.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
public java.lang.String toString()
toString
in class java.lang.Object
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.