Class ModelicaComponentDeclaration
- java.lang.Object
-
- net.sourceforge.pmd.lang.modelica.resolver.ModelicaComponentDeclaration
-
- All Implemented Interfaces:
ModelicaDeclaration
,ResolvableEntity
public class ModelicaComponentDeclaration extends Object implements ModelicaDeclaration
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ModelicaComponentDeclaration.ComponentCausality
static class
ModelicaComponentDeclaration.ComponentKind
static class
ModelicaComponentDeclaration.ComponentVariability
-
Constructor Summary
Constructors Constructor Description ModelicaComponentDeclaration(ASTComponentDeclaration node)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelicaComponentDeclaration.ComponentCausality
getCausality()
Whether this component is input, output or acausal.ASTConditionAttribute
getCondition()
ModelicaClassScope
getContainingScope()
Returns the scope in which this symbol is declared.String
getDescriptiveName()
Returns some name to be shown to user in violation description.ModelicaComponentDeclaration.ComponentKind
getKind()
Whether this component is declared asflow
,stream
or nothing special.String
getSimpleDeclarationName()
Returns the name of a declaration, such as "RealInput".ResolutionResult<ModelicaType>
getTypeCandidates()
ModelicaComponentDeclaration.ComponentVariability
getVariability()
Whether this component is a constant, a parameter, a discrete or a continuous variable.String
toString()
-
-
-
Constructor Detail
-
ModelicaComponentDeclaration
public ModelicaComponentDeclaration(ASTComponentDeclaration node)
-
-
Method Detail
-
getContainingScope
public ModelicaClassScope getContainingScope()
Description copied from interface:ModelicaDeclaration
Returns the scope in which this symbol is declared.- Specified by:
getContainingScope
in interfaceModelicaDeclaration
-
getCondition
public ASTConditionAttribute getCondition()
-
getKind
public ModelicaComponentDeclaration.ComponentKind getKind()
Whether this component is declared asflow
,stream
or nothing special.
-
getVariability
public ModelicaComponentDeclaration.ComponentVariability getVariability()
Whether this component is a constant, a parameter, a discrete or a continuous variable.
-
getCausality
public ModelicaComponentDeclaration.ComponentCausality getCausality()
Whether this component is input, output or acausal.
-
getSimpleDeclarationName
public String getSimpleDeclarationName()
Description copied from interface:ModelicaDeclaration
Returns the name of a declaration, such as "RealInput".- Specified by:
getSimpleDeclarationName
in interfaceModelicaDeclaration
-
getDescriptiveName
public String getDescriptiveName()
Description copied from interface:ResolvableEntity
Returns some name to be shown to user in violation description.- Specified by:
getDescriptiveName
in interfaceResolvableEntity
-
getTypeCandidates
public ResolutionResult<ModelicaType> getTypeCandidates()
-
-