Class SDefaultConstructorImpl
- java.lang.Object
 - 
- jetbrains.mps.core.aspects.behaviour.SDefaultConstructorImpl
 
 
- 
- All Implemented Interfaces:
 SConstructor,SExecutable,SElement,SNamedElement
public final class SDefaultConstructorImpl extends Object implements SConstructor
A simple implementation of constructor (no params) It is a current implementation of behavior constructors 
- 
- 
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_CONSTRUCTOR_NAME 
- 
Constructor Summary
Constructors Constructor Description SDefaultConstructorImpl(BHDescriptor descriptor, AccessPrivileges accessPrivileges) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SAbstractConceptgetConcept()SExecutable must belong to some concept For example in the case of SMethod the concept is the concept where the method is declaredList<SThrowable>getExceptions()SModifiersgetModifiers()StringgetName()Presentation of the element for an end-user.List<SParameter>getParameters()SNodenewNode(SModel model, Object... parameters)Creates a new node in the provided model and initialises it with given parameters- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface org.jetbrains.mps.openapi.language.SElement
getLanguage, getSourceNode 
 - 
 
 - 
 
- 
- 
Field Detail
- 
DEFAULT_CONSTRUCTOR_NAME
public static final String DEFAULT_CONSTRUCTOR_NAME
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Constructor Detail
- 
SDefaultConstructorImpl
public SDefaultConstructorImpl(@NotNull BHDescriptor descriptor, @NotNull AccessPrivileges accessPrivileges)
 
 - 
 
- 
Method Detail
- 
getConcept
@NotNull public SAbstractConcept getConcept()
Description copied from interface:SExecutableSExecutable must belong to some concept For example in the case of SMethod the concept is the concept where the method is declared- Specified by:
 getConceptin interfaceSExecutable- Returns:
 - the concept which this executable belongs to
 
 
- 
getModifiers
@NotNull public SModifiers getModifiers()
- Specified by:
 getModifiersin interfaceSExecutable- Returns:
 - modifiers of the method (public/private, virtual, etc.)
 - See Also:
 SModifiers
 
- 
getParameters
public List<SParameter> getParameters()
- Specified by:
 getParametersin interfaceSExecutable- Returns:
 - the parameters description
 - See Also:
 SParameter
 
- 
getExceptions
public List<SThrowable> getExceptions()
- Specified by:
 getExceptionsin interfaceSExecutable- Returns:
 - the declared throwable exceptions description
 - See Also:
 SThrowable
 
- 
getName
@NotNull public String getName()
Description copied from interface:SNamedElementPresentation of the element for an end-user. Unlike identity, the name is deemed user-friendly and shall not be used for persistence.- Specified by:
 getNamein interfaceSNamedElement- Returns:
 - name of the meta element
 
 
- 
newNode
@NotNull public SNode newNode(@Nullable SModel model, Object... parameters)
Description copied from interface:SConstructorCreates a new node in the provided model and initialises it with given parameters- Specified by:
 newNodein interfaceSConstructor- Parameters:
 model- the model to attach to the new nodeparameters- the parameters of this constructor- Returns:
 - new initialized node in the model {@param model}
 
 
 - 
 
 -