Class Script
- java.lang.Object
-
- net.ssehub.easy.instantiation.core.model.common.AbstractResolvableModel<VariableDeclaration,Script>
-
- net.ssehub.easy.instantiation.core.model.buildlangModel.Script
-
- All Implemented Interfaces:
IModel,IModelData,IModelListener<Project>,IBuildlangElement,ICompoundReceiver,ILanguageElement,IParameterizable<VariableDeclaration>,IResolvableModel<VariableDeclaration,Script>,ITypedefReceiver,IVariableDeclarationReceiver<VariableDeclaration>,IMetaType,ITypedModel
public class Script extends AbstractResolvableModel<VariableDeclaration,Script> implements IBuildlangElement, IResolvableModel<VariableDeclaration,Script>, IVariableDeclarationReceiver<VariableDeclaration>
Creates a project which is the top-level element of a build script VIL-model. Scripts represent an implicit type, i.e., they are not registered with theTypeRegistryand, thus, not assignable.- Author:
- kroeher
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classScript.ScriptDescriptor<S extends Script>A descriptor class used for creating scripts (maximum parameter constraint).
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<VariableDeclaration>declarationsstatic java.lang.StringDEFAULT_START_RULE_NAMEDefines the default start rule name.private static java.util.Set<java.lang.String>IMPLICIT_VARSprivate java.util.List<LoadProperties>loadPropertiesprivate java.lang.Stringnamestatic java.lang.StringNAME_OTHERPROJECTSstatic java.lang.StringNAME_SCRIPTDIRprivate java.util.Map<java.lang.String,VariableDeclaration>namedParamsprivate VariableDeclaration[]parametersprivate ModelImport<Script>parentprivate java.util.List<AbstractRule>rulesprivate Versionversion
-
Constructor Summary
Constructors Constructor Description Script()Constructor for serializer.Script(java.lang.String name)Constructor for a script without parent, parameters or advices and with the default type registry.Script(java.lang.String name, ModelImport<Script> parent, Script.ScriptDescriptor<Script> descriptor, TypeRegistry registry)Constructor for a script.Script(java.lang.String name, VariableDeclaration[] parameters)Constructor for a script with parameters and default type registry.Script(java.lang.String name, VariableDeclaration[] parameters, TypeRegistry registry)Constructor for a script with parameters.Script(java.lang.String name, TypeRegistry registry)Constructor for a script without parent, parameters or advices.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectaccept(IVisitor visitor)Accepts the visitor for visiting.voidaddLoadProperties(LoadProperties propFile)Add a properties file to this project.IMetaOperationaddPlaceholderOperation(java.lang.String name, int parameterCount, boolean acceptsNamedParameters)Adds a placeholder operation, i.e., in case that the original operation cannot be resolved but the script shall remain executable.voidaddRule(AbstractRule rule)Adds a rule instance.voidaddVariableDeclaration(VariableDeclaration varDecl)Adds a variable declaration.private voidadjustParents()Adjusts the parents of contained elements.booleancheckConversion(IMetaType param, IMetaOperation conversion)Checks a conversion from this type toparamvia the givenconversion.private voidcollectRoots(java.util.Set<Script> processed, java.util.Set<java.lang.String> knownSignatures, java.util.List<AbstractRule> roots)Finds the root rules.static VariableDeclaration[]createDefaultParameter()Creates the default parameter for a VIL script.protected voidcreateImplicitVariables()Creates implicit variables.protected Imports<Script>createImports()Creates an empty imports instance (in case that a specialized instance shall be used).AbstractRuledetermineStartRule(java.lang.String startRuleName)Determines the start rule for script involving imported scripts.booleanenableDynamicDispatch()Returns whether this type enables dynamic dispatch of operations.IMetaOperationfindConversion(IMetaType sourceType, IMetaType targetType)Returns the conversion operation from this type to target type (if there is any).IMetaTypegetBaseType()Returns the base type (in case of IVML derived types).java.util.List<IMetaOperation>getCandidates(java.lang.String name, int unnamedArgsCount)Returns operation candidates matching the given name and number of unnamed (required) arguments.(package private) java.io.FilegetContainingFolder()Returns the folder containing the physical model file.IMetaTypegetExtensionType(int index)Returns the specified extension type.intgetExtensionTypesCount()Returns the number of extension types declared in/by this model.IMetaFieldgetField(int index)Returns the specified field.intgetFieldCount()Returns the number of fields provided by this type.intgetGenericParameterCount()Returns the number of generic type parameters.TypeDescriptor<?>getGenericParameterType(int index)Returns the specified generic parameter type.protected Imports<Script>getImports()Returns the imports instance.IndentationConfigurationgetIndentationConfiguration()Returns the indentation configuration for this model.java.lang.StringgetLanguageName()Returns the name of the language represented.AbstractRulegetMainRule(boolean createIfAbsent)Returns the default main rule of this script, i.e., a rule with nameDEFAULT_START_RULE_NAMEcomplying to the parameters of this script.AbstractRulegetMainRule(java.lang.String name, boolean createIfAbsent)Returns the main rule of this script, i.e., a rule withnamecomplying to the parameters of this script.java.lang.StringgetName()Get the name of this project.IMetaOperationgetOperation(int index)Returns the specified operation.intgetOperationsCount()Returns the number of operations provided by this type.VariableDeclarationgetParameter(int index)Get the parameter of this rule at the specified index.VariableDeclarationgetParameter(java.lang.String name)Returns a named parameter declaration.intgetParameterCount()Get the number of parameters of this rule.ScriptgetParent()Get the parent project which this project extends.LoadPropertiesgetProperties(int index)Get the properties file of this project at the specified index.intgetPropertiesCount()Get the number of properties to be loaded for this project.java.lang.StringgetQualifiedName()Returns the qualified name of this type.intgetRequiredParameterCount()Returns the number of required parameters, i.e., non-default and non-named parameters.IRestrictionEvaluationContextgetRestrictionEvaluationContext()Returns the context for evaluating import / conflict restrictions.AbstractRulegetRule(int index)Get the rule in this project at the specified index.intgetRuleCount()Get the number of rules in this project.ModelImport<Script>getSuper()Returns the reference to the super model (if it exists).IMetaTypegetSuperType()Returns the type this type is refined from.VariableDeclarationgetVariableDeclaration(int index)Get the declaration of this project at the specified index.VariableDeclarationgetVariableDeclaration(java.lang.String name)Returns the variable declaration with the specifiedname.intgetVariableDeclarationCount()Get the number of variable declarations of this project.VersiongetVersion()Get the version of this project.ModelImport<Template>getVtlRestriction(int index)Returns the specified VTL restriction.intgetVtlRestrictionsCount()Returns the number of VTL restrictions.intindexOf(Rule rule)Returns the index of the specifiedrule.booleanisActualTypeOf(IMetaType type)Returns whether this type can act as an actual type oftype.booleanisAssignableFrom(IMetaType type)Returns whether this type is the same or a super class oftype.booleanisBasicType()Returns whether this instance represents a basic type.booleanisImplicit(VariableDeclaration decl)Returns whether a variable declaration is implicit (predefined).booleanisInternal()Returns whether this type is internal and shall not be visible to the user.booleanisPlaceholder()Returns whether this type is valid or whether it is a placeholder type in case that the original type cannot be resolved but the script shall remain executable.protected voidreload()Causes a reload of this model.voidremoveRule(Rule rule)Removes a rule instance.voidsetVersion(Version version)Changes the version of this model.-
Methods inherited from class net.ssehub.easy.instantiation.core.model.common.AbstractResolvableModel
addCompound, addImport, addRuntimeImport, addTypedef, dispose, getAdvice, getAdviceCount, getCompound, getCompound, getCompoundCount, getImport, getImportsCount, getIvmlElement, getTypedef, getTypedef, getTypedefCount, getTypeRegistry, isDirty, notifyReplaced
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.ssehub.easy.basics.modelManagement.IModel
dispose, getImport, getImportsCount
-
Methods inherited from interface net.ssehub.easy.instantiation.core.model.common.IResolvableModel
addRuntimeImport, getCompound, getCompound, getCompoundCount, getIvmlElement, getTypedef, getTypedef, getTypedefCount, getTypeRegistry
-
-
-
-
Field Detail
-
DEFAULT_START_RULE_NAME
public static final java.lang.String DEFAULT_START_RULE_NAME
Defines the default start rule name.- See Also:
- Constant Field Values
-
NAME_OTHERPROJECTS
public static final java.lang.String NAME_OTHERPROJECTS
- See Also:
- Constant Field Values
-
NAME_SCRIPTDIR
public static final java.lang.String NAME_SCRIPTDIR
- See Also:
- Constant Field Values
-
IMPLICIT_VARS
private static final java.util.Set<java.lang.String> IMPLICIT_VARS
-
name
private java.lang.String name
-
version
private Version version
-
parent
private ModelImport<Script> parent
-
parameters
private VariableDeclaration[] parameters
-
namedParams
private java.util.Map<java.lang.String,VariableDeclaration> namedParams
-
declarations
private java.util.List<VariableDeclaration> declarations
-
rules
private java.util.List<AbstractRule> rules
-
loadProperties
private java.util.List<LoadProperties> loadProperties
-
-
Constructor Detail
-
Script
Script()
Constructor for serializer.
-
Script
public Script(java.lang.String name)
Constructor for a script without parent, parameters or advices and with the default type registry.- Parameters:
name- Name of the project.
-
Script
public Script(java.lang.String name, TypeRegistry registry)Constructor for a script without parent, parameters or advices.- Parameters:
name- Name of the project.registry- the responsible registry
-
Script
public Script(java.lang.String name, VariableDeclaration[] parameters)Constructor for a script with parameters and default type registry.- Parameters:
name- Name of the project.parameters- the formal parameters of this script
-
Script
public Script(java.lang.String name, VariableDeclaration[] parameters, TypeRegistry registry)Constructor for a script with parameters.- Parameters:
name- Name of the project.parameters- the formal parameters of this scriptregistry- the responsible registry
-
Script
public Script(java.lang.String name, ModelImport<Script> parent, Script.ScriptDescriptor<Script> descriptor, TypeRegistry registry)Constructor for a script.- Parameters:
name- Name of the project.parent- the super script to inherit from (as a script import, may be null, shall be member ofimportsor also null)descriptor- the descriptor carrying parameters, advices and imports (may be null)registry- the responsible type registry
-
-
Method Detail
-
adjustParents
private void adjustParents()
Adjusts the parents of contained elements.
-
createImports
protected Imports<Script> createImports()
Description copied from class:AbstractResolvableModelCreates an empty imports instance (in case that a specialized instance shall be used).- Overrides:
createImportsin classAbstractResolvableModel<VariableDeclaration,Script>- Returns:
- the created instance
-
createDefaultParameter
public static VariableDeclaration[] createDefaultParameter()
Creates the default parameter for a VIL script.- Returns:
- the default parameter
-
createImplicitVariables
protected void createImplicitVariables()
Creates implicit variables.- See Also:
isImplicit(VariableDeclaration)
-
isImplicit
public boolean isImplicit(VariableDeclaration decl)
Description copied from interface:IResolvableModelReturns whether a variable declaration is implicit (predefined).- Specified by:
isImplicitin interfaceIResolvableModel<VariableDeclaration,Script>- Parameters:
decl- the declaration to be tested- Returns:
trueif it is implicit,falseelse
-
getParameterCount
public int getParameterCount()
Description copied from interface:IParameterizableGet the number of parameters of this rule.- Specified by:
getParameterCountin interfaceIParameterizable<VariableDeclaration>- Returns:
- The number of parameters of this rule.
-
getParameter
public VariableDeclaration getParameter(int index)
Description copied from interface:IParameterizableGet the parameter of this rule at the specified index.- Specified by:
getParameterin interfaceIParameterizable<VariableDeclaration>- Parameters:
index- The 0-based index of the rule parameter to be returned.- Returns:
- The rule parameter at the given index.
-
getRequiredParameterCount
public int getRequiredParameterCount()
Description copied from interface:IParameterizableReturns the number of required parameters, i.e., non-default and non-named parameters.- Specified by:
getRequiredParameterCountin interfaceIParameterizable<VariableDeclaration>- Returns:
- the number of required parameters
-
getParameter
public VariableDeclaration getParameter(java.lang.String name)
Description copied from interface:IParameterizableReturns a named parameter declaration.- Specified by:
getParameterin interfaceIParameterizable<VariableDeclaration>- Parameters:
name- the name of the parameter- Returns:
- the declaration or null if there is none
-
addLoadProperties
public void addLoadProperties(LoadProperties propFile)
Add a properties file to this project.- Parameters:
propFile- The properties to be added.
-
addRule
public void addRule(AbstractRule rule)
Adds a rule instance.- Parameters:
rule- the rule instance
-
removeRule
public void removeRule(Rule rule)
Removes a rule instance.- Parameters:
rule- the rule instance
-
addVariableDeclaration
public void addVariableDeclaration(VariableDeclaration varDecl)
Adds a variable declaration.- Specified by:
addVariableDeclarationin interfaceIVariableDeclarationReceiver<VariableDeclaration>- Parameters:
varDecl- the variable declaration
-
getName
public java.lang.String getName()
Get the name of this project.
-
getQualifiedName
public java.lang.String getQualifiedName()
Description copied from interface:IMetaTypeReturns the qualified name of this type.- Specified by:
getQualifiedNamein interfaceIMetaType- Returns:
- the qualified name
-
getParent
public Script getParent()
Get the parent project which this project extends.- Specified by:
getParentin interfaceILanguageElement- Specified by:
getParentin interfaceIResolvableModel<VariableDeclaration,Script>- Returns:
- The parent project of this project or
nullif no parent is defined for this project.
-
getVersion
public Version getVersion()
Get the version of this project.- Specified by:
getVersionin interfaceIModel- Specified by:
getVersionin interfaceIModelData- Returns:
- The version of this project or
nullif no version is defined for this project.
-
setVersion
public void setVersion(Version version)
Description copied from interface:IModelChanges the version of this model.- Specified by:
setVersionin interfaceIModel- Parameters:
version- Version to set
-
getRuleCount
public int getRuleCount()
Get the number of rules in this project.- Returns:
- The number of rules in this project.
-
getRule
public AbstractRule getRule(int index)
Get the rule in this project at the specified index.- Parameters:
index- The 0-based index of the rule to be returned.- Returns:
- The rule at the given index.
-
indexOf
public int indexOf(Rule rule)
Returns the index of the specifiedrule.- Parameters:
rule- the rule to search for- Returns:
-1ifrulewas not found, , the index ofruleelse
-
getVariableDeclaration
public VariableDeclaration getVariableDeclaration(java.lang.String name)
Returns the variable declaration with the specifiedname.- Parameters:
name- the name of the variable declaration- Returns:
- the matching variable declaration, null else
-
getVariableDeclarationCount
public int getVariableDeclarationCount()
Get the number of variable declarations of this project.- Specified by:
getVariableDeclarationCountin interfaceIResolvableModel<VariableDeclaration,Script>- Returns:
- The number of variable declarations of this project.
-
getVariableDeclaration
public VariableDeclaration getVariableDeclaration(int index)
Get the declaration of this project at the specified index.- Specified by:
getVariableDeclarationin interfaceIResolvableModel<VariableDeclaration,Script>- Parameters:
index- The 0-based index of the declaration to be returned.- Returns:
- The declaration at the given index.
-
getPropertiesCount
public int getPropertiesCount()
Get the number of properties to be loaded for this project.- Returns:
- The number of properties to be loaded for this project.
-
getProperties
public LoadProperties getProperties(int index)
Get the properties file of this project at the specified index.- Parameters:
index- The 0-based index of the properties file to be returned.- Returns:
- The properties file at the given index.
-
accept
public java.lang.Object accept(IVisitor visitor) throws VilException
Description copied from interface:IBuildlangElementAccepts the visitor for visiting.- Specified by:
acceptin interfaceIBuildlangElement- Parameters:
visitor- the visitor to be used- Returns:
- the result of visiting this instance (may be null)
- Throws:
VilException- in case that visiting fails (e.g., execution)
-
getOperationsCount
public int getOperationsCount()
Description copied from interface:IMetaTypeReturns the number of operations provided by this type.- Specified by:
getOperationsCountin interfaceIMetaType- Returns:
- the number of operations
-
getOperation
public IMetaOperation getOperation(int index)
Description copied from interface:IMetaTypeReturns the specified operation.- Specified by:
getOperationin interfaceIMetaType- Parameters:
index- the 0-based index of the operation to be returned- Returns:
- the specified operation
-
isAssignableFrom
public boolean isAssignableFrom(IMetaType type)
Description copied from interface:IMetaTypeReturns whether this type is the same or a super class oftype.- Specified by:
isAssignableFromin interfaceIMetaType- Parameters:
type- the descriptor to be tested- Returns:
trueif both types are assignment compatible,falseelse
-
findConversion
public IMetaOperation findConversion(IMetaType sourceType, IMetaType targetType)
Description copied from interface:IMetaTypeReturns the conversion operation from this type to target type (if there is any).- Specified by:
findConversionin interfaceIMetaType- Parameters:
sourceType- the source type to convert fromtargetType- the target type to convert to- Returns:
- the conversion operation as defined in the underlying implementation class, null if no matching can be found
-
getSuper
public ModelImport<Script> getSuper()
Description copied from interface:IModelReturns the reference to the super model (if it exists).
-
getExtensionTypesCount
public int getExtensionTypesCount()
Description copied from interface:IResolvableModelReturns the number of extension types declared in/by this model.- Specified by:
getExtensionTypesCountin interfaceIResolvableModel<VariableDeclaration,Script>- Returns:
- the number of extension types
-
getExtensionType
public IMetaType getExtensionType(int index)
Description copied from interface:IResolvableModelReturns the specified extension type.- Specified by:
getExtensionTypein interfaceIResolvableModel<VariableDeclaration,Script>- Parameters:
index- the 0-based index of the extension type to be returned- Returns:
- the specified extension type
-
getIndentationConfiguration
public IndentationConfiguration getIndentationConfiguration()
Description copied from interface:IModelReturns the indentation configuration for this model. The indentation configuration is considered to be immutable.- Specified by:
getIndentationConfigurationin interfaceIModel- Returns:
- the indentation configuration (disabled if null)
-
determineStartRule
public AbstractRule determineStartRule(java.lang.String startRuleName) throws VilException
Determines the start rule for script involving imported scripts.- Parameters:
startRuleName- the start rule name (typically "main")- Returns:
- the start rule
- Throws:
VilException- in case that the start rule cannot be determined (uniquely)
-
collectRoots
private void collectRoots(java.util.Set<Script> processed, java.util.Set<java.lang.String> knownSignatures, java.util.List<AbstractRule> roots)
Finds the root rules.- Parameters:
processed- already processed scripts (to be modified as a side effect)knownSignatures- the known signatures of already included rules (to be modified as a side effect)roots- the actual root rules (to be modified as a side effect)
-
getContainingFolder
java.io.File getContainingFolder()
Returns the folder containing the physical model file.- Returns:
- the folder or null if this cannot be accessed
-
getMainRule
public AbstractRule getMainRule(boolean createIfAbsent)
Returns the default main rule of this script, i.e., a rule with nameDEFAULT_START_RULE_NAMEcomplying to the parameters of this script.- Parameters:
createIfAbsent- iftruecreate the rule if it does not exist,falsejust return null if the rule does not exist- Returns:
- the main rule or null
-
getMainRule
public AbstractRule getMainRule(java.lang.String name, boolean createIfAbsent)
Returns the main rule of this script, i.e., a rule withnamecomplying to the parameters of this script.- Parameters:
createIfAbsent- iftruecreate the rule if it does not exist,falsejust return null if the rule does not existname- the name of the rule- Returns:
- the main rule or null
-
isBasicType
public boolean isBasicType()
Description copied from interface:IMetaTypeReturns whether this instance represents a basic type.- Specified by:
isBasicTypein interfaceIMetaType- Returns:
trueif this instance represents a basic type,falseelse
-
enableDynamicDispatch
public boolean enableDynamicDispatch()
Description copied from interface:IMetaTypeReturns whether this type enables dynamic dispatch of operations.- Specified by:
enableDynamicDispatchin interfaceIMetaType- Returns:
trueif it enables dynamic dispatch,falseelse
-
getImports
protected Imports<Script> getImports()
Returns the imports instance.- Overrides:
getImportsin classAbstractResolvableModel<VariableDeclaration,Script>- Returns:
- the imports instance
-
getVtlRestrictionsCount
public int getVtlRestrictionsCount()
Returns the number of VTL restrictions.- Returns:
- the number of VTL restrictions
-
getVtlRestriction
public ModelImport<Template> getVtlRestriction(int index)
Returns the specified VTL restriction.- Parameters:
index- the 0-based index of the VTL restriction- Returns:
- the specified model import
- Throws:
java.lang.IndexOutOfBoundsException- ifindex < 0 || index >=getVtlRestrictionsCount()
-
isPlaceholder
public boolean isPlaceholder()
Description copied from interface:IMetaTypeReturns whether this type is valid or whether it is a placeholder type in case that the original type cannot be resolved but the script shall remain executable.- Specified by:
isPlaceholderin interfaceIMetaType- Returns:
trueif this type is a placeholder,falseelse
-
addPlaceholderOperation
public IMetaOperation addPlaceholderOperation(java.lang.String name, int parameterCount, boolean acceptsNamedParameters)
Description copied from interface:IMetaTypeAdds a placeholder operation, i.e., in case that the original operation cannot be resolved but the script shall remain executable.- Specified by:
addPlaceholderOperationin interfaceIMetaType- Parameters:
name- the name of the operationparameterCount- the number of parameters of the operationacceptsNamedParameters- whether the operation shall accept named parameters- Returns:
- the added operation, null if this type is not a
placeholder
-
isActualTypeOf
public boolean isActualTypeOf(IMetaType type)
Description copied from interface:IMetaTypeReturns whether this type can act as an actual type oftype.- Specified by:
isActualTypeOfin interfaceIMetaType- Parameters:
type- the type to be checked- Returns:
trueif this type can act as an actual type oftype,falseelse- See Also:
IActualTypeProvider
-
reload
protected void reload()
Description copied from class:AbstractResolvableModelCauses a reload of this model.- Specified by:
reloadin classAbstractResolvableModel<VariableDeclaration,Script>
-
getRestrictionEvaluationContext
public IRestrictionEvaluationContext getRestrictionEvaluationContext()
Description copied from interface:IModelReturns the context for evaluating import / conflict restrictions. This context shall only contain the information that is necessary to evaluate restriction information.- Specified by:
getRestrictionEvaluationContextin interfaceIModel- Returns:
- the evaluation context
-
getBaseType
public IMetaType getBaseType()
Description copied from interface:IMetaTypeReturns the base type (in case of IVML derived types).- Specified by:
getBaseTypein interfaceIMetaType- Returns:
- the base type or null
-
getFieldCount
public int getFieldCount()
Description copied from interface:IMetaTypeReturns the number of fields provided by this type.- Specified by:
getFieldCountin interfaceIMetaType- Returns:
- the number of fields
-
getField
public IMetaField getField(int index)
Description copied from interface:IMetaTypeReturns the specified field.
-
isInternal
public boolean isInternal()
Description copied from interface:IMetaTypeReturns whether this type is internal and shall not be visible to the user.- Specified by:
isInternalin interfaceIMetaType- Returns:
trueif this type is internal,falseelse
-
getSuperType
public IMetaType getSuperType()
Description copied from interface:IMetaTypeReturns the type this type is refined from.- Specified by:
getSuperTypein interfaceIMetaType- Returns:
- the super type or null if there is none
-
getGenericParameterCount
public int getGenericParameterCount()
Description copied from interface:IMetaTypeReturns the number of generic type parameters.- Specified by:
getGenericParameterCountin interfaceIMetaType- Returns:
- the number of generic type parameters
-
getGenericParameterType
public TypeDescriptor<?> getGenericParameterType(int index)
Description copied from interface:IMetaTypeReturns the specified generic parameter type.- Specified by:
getGenericParameterTypein interfaceIMetaType- Parameters:
index- the index of the parameter type to return- Returns:
- the specified parameter type
-
checkConversion
public boolean checkConversion(IMetaType param, IMetaOperation conversion)
Description copied from interface:IMetaTypeChecks a conversion from this type toparamvia the givenconversion.- Specified by:
checkConversionin interfaceIMetaType- Parameters:
param- the original parameter valueconversion- the conversion function- Returns:
trueif ok,falseelse
-
getCandidates
public java.util.List<IMetaOperation> getCandidates(java.lang.String name, int unnamedArgsCount)
Description copied from interface:IMetaTypeReturns operation candidates matching the given name and number of unnamed (required) arguments.- Specified by:
getCandidatesin interfaceIMetaType- Parameters:
name- the name of the operationunnamedArgsCount- the number of unnamed arguments- Returns:
- the operation candidates
-
getLanguageName
public java.lang.String getLanguageName()
Returns the name of the language represented.- Returns:
- the name of the language
-
-