Interface DslElement

All Known Subinterfaces:
Expression, Position
All Known Implementing Classes:
ConstantPosition, ConstantStringExpression, DynamicPosition, Expressions, LookupExpression, SubstringExpression, TokenSequence

public interface DslElement
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    The weight can be used to find an optimal program in a set of valid programs.
  • Method Details

    • getDslWeight

      int getDslWeight()
      The weight can be used to find an optimal program in a set of valid programs. "Optimal" is subjective and can go into different directions. Some examples include:
      • Weight by how expensive a DSL element is to execute.
        Weight by how likely a DSL element is to be part of a generic full program. A ConstantPosition generally is less generic. Thus, the user has to specify their intent more often to finish their wrangling task.
    • Returns:
      the weight of the DSL element