Class EmptyBHDescriptor
- java.lang.Object
 - 
- jetbrains.mps.core.aspects.behaviour.BaseBHDescriptor
 - 
- jetbrains.mps.core.aspects.behaviour.EmptyBHDescriptor
 
 
 
- 
- All Implemented Interfaces:
 BHDescriptor
public final class EmptyBHDescriptor extends BaseBHDescriptor
Intended to supply a generated behavior code in the cases: 1. No behavior aspect at all; 2. There is a behavior aspect in the language, but it has not been generated. It acts exactly as if it has no methods. 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from class jetbrains.mps.core.aspects.behaviour.BaseBHDescriptor
BaseBHDescriptor.BHNotInitializedException 
 - 
 
- 
Constructor Summary
Constructors Constructor Description EmptyBHDescriptor(BehaviorRegistry behaviorRegistry, SAbstractConcept concept) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SAbstractConceptgetConcept()List<SMethod<?>>getDeclaredMethods()Returns list ofSMethodobjects reflecting all the methods (from private to public) of the concept represented by this descriptor EXCLUDING those inherited from super concepts.protected voidinitNode(SNode node, SConstructor constructor, Object... parameters)protected <T> TinvokeSpecial0(SAbstractConcept concept, SMethod<T> method, Object... parameters)invokes a static method without dynamic resolutionprotected <T> TinvokeSpecial0(SNode node, SMethod<T> method, Object... parameters)invokes a method without dynamic resolution- 
Methods inherited from class jetbrains.mps.core.aspects.behaviour.BaseBHDescriptor
getMethods, init, initNode, invoke, invoke, invokeSpecial, invokeSpecial, invokeSuper, invokeSuper, newNode, toString 
- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait 
- 
Methods inherited from interface jetbrains.mps.core.aspects.behaviour.api.BHDescriptor
getDeclaredMethod, getMethod 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
EmptyBHDescriptor
public EmptyBHDescriptor(BehaviorRegistry behaviorRegistry, @NotNull SAbstractConcept concept)
 
 - 
 
- 
Method Detail
- 
getDeclaredMethods
@NotNull public List<SMethod<?>> getDeclaredMethods()
Description copied from interface:BHDescriptorReturns list ofSMethodobjects reflecting all the methods (from private to public) of the concept represented by this descriptor EXCLUDING those inherited from super concepts.- Specified by:
 getDeclaredMethodsin interfaceBHDescriptor- Specified by:
 getDeclaredMethodsin classBaseBHDescriptor
 
- 
initNode
protected void initNode(@NotNull SNode node, @NotNull SConstructor constructor, @NotNull Object... parameters)
- Specified by:
 initNodein classBaseBHDescriptor- Parameters:
 node- -- the new node to initializeconstructor- -- constructor to invokeparameters- -- parameters to pass to the constructor
 
- 
invokeSpecial0
protected <T> T invokeSpecial0(@NotNull SNode node, @NotNull SMethod<T> method, @NotNull Object... parameters)
Description copied from class:BaseBHDescriptorinvokes a method without dynamic resolution- Specified by:
 invokeSpecial0in classBaseBHDescriptorparameters- is an array of arguments. NB: in the case of the last var arg parameter, the last array member is actually packed into another array
 
- 
invokeSpecial0
protected <T> T invokeSpecial0(@NotNull SAbstractConcept concept, @NotNull SMethod<T> method, @NotNull Object... parameters)
Description copied from class:BaseBHDescriptorinvokes a static method without dynamic resolution- Specified by:
 invokeSpecial0in classBaseBHDescriptor
 
- 
getConcept
@NotNull public SAbstractConcept getConcept()
- Returns:
 - owning concept of this descriptor
 
 
 - 
 
 -