public abstract class AbstractBinding extends BaseLocatable implements Binding2
Binding.get().| Modifier | Constructor and Description |
|---|---|
|
AbstractBinding() |
protected |
AbstractBinding(Location location) |
| Modifier and Type | Method and Description |
|---|---|
<T extends Annotation> |
getAnnotation(Class<T> annotationClass)
Always returns null.
|
Type |
getBindingGenericType()
Passes straight through to
getBindingType(). |
Class |
getBindingType()
Returns the actual class, by invoking
Binding.get(). |
boolean |
isInvariant()
Returns true.
|
void |
set(Object value)
Updates the current value.
|
getLocationpublic AbstractBinding()
protected AbstractBinding(Location location)
public void set(Object value)
Bindingset in interface BindingTapestryException - alwayspublic boolean isInvariant()
isInvariant in interface Bindingpublic Class getBindingType()
Binding.get(). Subclasses may override this method to work more
efficiently (say, when the binding type is known statically).getBindingType in interface Bindingpublic Type getBindingGenericType()
getBindingType(). Subclasses may override this method to
return the generic type if it is availablegetBindingGenericType in interface Binding2Method.getGenericReturnType(),
Field.getGenericType()public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
getAnnotation in interface AnnotationProviderannotationClass - used to select the annotation to return${project.version} - Copyright © 2003-2015 The Apache Software Foundation.