public interface URCapProgramNode extends ProgramNode
ProgramNodeContribution.| Modifier and Type | Method and Description |
|---|---|
boolean |
canGetAs(Class<?> urCapProgramNodeInterface)
This method returns
true if a subsequent call to getAs(Class) using the same parameter will be
successful. |
<T> T |
getAs(Class<T> urCapProgramNodeInterface)
The URCap program node contribution (i.e.
|
boolean canGetAs(Class<?> urCapProgramNodeInterface)
true if a subsequent call to getAs(Class) using the same parameter will be
successful.urCapProgramNodeInterface - the interface the program node implements, not null.true if the program node can be represented as the specified interface. false otherwise.<T> T getAs(Class<T> urCapProgramNodeInterface)
The URCap program node contribution (i.e. the class implementing ProgramNodeContribution) can optionally
implement additional interfaces providing access to various information and/or methods.
If such an interface is implemented, the getAs(Class) method can be used to retrieve the program node as
said interface.
ProgramNodeContribution (or an extension/implementation thereof) nor
Object as argument, otherwise an IllegalArgumentException is thrown.T - The (generic) type parameter for the interface.urCapProgramNodeInterface - the interface the program node implements, not null.ClassCastException - If the program node does not implement the interface a class cast exception will be thrown.IllegalArgumentException - If the type parameter is an implementation/extension ofProgramNodeContribution
or Object.Copyright © 2021. All rights reserved.