Class ClassModifierChangePredicate

java.lang.Object
org.ek9lang.compiler.common.ClassModifierChangePredicate

public final class ClassModifierChangePredicate extends Object
Decides whether a construct's modifier (as open / as abstract) may legally be toggled to a proposed state — the "declaration viability" of the modifier refactoring.

Supports classes, records, components, and functions. Uses the same symbol-table queries the compiler enforces (ICanBeGeneric.isOpenForExtension(), ISymbol.isMarkedAbstract(), IAggregateSymbol.getAllAbstractMethods()) so the predicate can never drift from what the compiler accepts.

Intended to be shared by the compiler-services MCP tools and the IDE Refactor menu.

  • Constructor Details

    • ClassModifierChangePredicate

      public ClassModifierChangePredicate()
  • Method Details