com.sodius.mdw.core.eval.project
Interface Rule

All Superinterfaces:
ProjectElement

public interface Rule
extends ProjectElement

A top-level rule.

This rule always represents a top level rule. Subrules are not subject of interest during evaluations as they're not visible outside of the defining rule set.

This interface is not intended to be implemented by clients.

See Also:
RuleSet.getRules()

Method Summary
 Class<?> getReturnType()
          Returns the rule resolved return type.
 RuleSet getRuleSet()
          Returns the rule set in which this rule is defined.
 VisibilityKind getVisibility()
          Returns the rule visibility.
 
Methods inherited from interface com.sodius.mdw.core.eval.project.ProjectElement
getLocation, getName, getParameterCount, getParameters
 

Method Detail

getRuleSet

RuleSet getRuleSet()
Returns the rule set in which this rule is defined.

Returns:
the container rule set.

getVisibility

VisibilityKind getVisibility()
Returns the rule visibility.

Specified by:
getVisibility in interface ProjectElement
Returns:
the rule visibility.

getReturnType

Class<?> getReturnType()
Returns the rule resolved return type.

Returns:
the resolved return type.