public final class Subplan<T> extends InjectionPlan<T>
Constructor and Description |
---|
Subplan(Node node,
InjectionPlan<T>... alternatives) |
Subplan(Node node,
int selectedIndex,
InjectionPlan<T>... alternatives) |
Modifier and Type | Method and Description |
---|---|
Collection<InjectionPlan<?>> |
getChildren()
Get child elements of the injection plan tree.
|
InjectionPlan<? extends T> |
getDelegatedPlan() |
int |
getNumAlternatives() |
InjectionPlan<?>[] |
getPlans() |
int |
getSelectedIndex() |
boolean |
isAmbiguous()
Even if there is only one sub-plan, it was registered as a default plan,
and is therefore ambiguous.
|
boolean |
isInjectable() |
String |
toShallowString() |
String |
toString() |
getNode, isFeasible, toCantInjectString, toPrettyString
@SafeVarargs public Subplan(Node node, int selectedIndex, InjectionPlan<T>... alternatives)
@SafeVarargs public Subplan(Node node, InjectionPlan<T>... alternatives)
public Collection<InjectionPlan<?>> getChildren()
getChildren
in interface Traversable<InjectionPlan<?>>
getChildren
in class InjectionPlan<T>
public int getNumAlternatives()
getNumAlternatives
in class InjectionPlan<T>
public boolean isAmbiguous()
isAmbiguous
in class InjectionPlan<T>
public boolean isInjectable()
isInjectable
in class InjectionPlan<T>
public String toShallowString()
toShallowString
in class InjectionPlan<T>
public int getSelectedIndex()
public InjectionPlan<? extends T> getDelegatedPlan()
public InjectionPlan<?>[] getPlans()
Copyright © 2017 The Apache Software Foundation. All rights reserved.