Class DefaultNTxStyleRule
java.lang.Object
net.thevpc.ntexup.api.document.style.DefaultNTxStyleRule
- All Implemented Interfaces:
NTxItem, NTxStyleRule
immutable value object
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultNTxStyleRule(NTxNode parent, NTxSource source, NTxStyleRuleSelector selector, NTxProp... styles) -
Method Summary
Modifier and TypeMethodDescriptionbooleanacceptNode(NTxNode node) booleaninthashCode()static DefaultNTxStyleRuleof(NTxNode parent, NTxSource source, NTxStyleRuleSelector filter, NTxProp... styles) static DefaultNTxStyleRuleRegisters a class definition (class-<name>(<bases>)), backed by a rule whose selector is aNTxStyleRuleSelectorItem.ClassDefItem.parent()selector()source()styles()net.thevpc.nuts.elem.NElementtoString()
-
Constructor Details
-
DefaultNTxStyleRule
public DefaultNTxStyleRule(NTxNode parent, NTxSource source, NTxStyleRuleSelector selector, NTxProp... styles)
-
-
Method Details
-
ofClassDef
public static DefaultNTxStyleRule ofClassDef(NTxNode parent, NTxSource source, String name, List<String> bases, NTxProp... styles) Registers a class definition (class-<name>(<bases>)), backed by a rule whose selector is aNTxStyleRuleSelectorItem.ClassDefItem. Class definitions never match nodes directly; they are folded into nodes that reference the class by name (usage-site@(name)). -
of
public static DefaultNTxStyleRule of(NTxNode parent, NTxSource source, NTxStyleRuleSelector filter, NTxProp... styles) -
parent
-
source
-
toElement
public net.thevpc.nuts.elem.NElement toElement()- Specified by:
toElementin interfaceNTxStyleRule
-
acceptNode
- Specified by:
acceptNodein interfaceNTxStyleRule
-
selector
- Specified by:
selectorin interfaceNTxStyleRule
-
styles
- Specified by:
stylesin interfaceNTxStyleRule
-
styles
- Specified by:
stylesin interfaceNTxStyleRule
-
equals
-
hashCode
-
toString
-