Package | Description |
---|---|
com.salesforce.omakase.ast.atrule |
Contains at-rule AST members.
|
com.salesforce.omakase.ast.declaration |
Contains declaration AST members.
|
com.salesforce.omakase.data |
Various data and constants, usually generated.
|
com.salesforce.omakase.plugin |
Interfaces for plugging new features into the parsing process (rework, validation, etc...).
|
com.salesforce.omakase.util |
Utilities and helpers.
|
Modifier and Type | Method and Description |
---|---|
PropertyValue |
FontDescriptor.propertyValue()
Gets the property value.
|
Modifier and Type | Method and Description |
---|---|
FontDescriptor |
FontDescriptor.propertyValue(PropertyValue propertyValue)
Sets a new property value.
|
Constructor and Description |
---|
FontDescriptor(PropertyName propertyName,
PropertyValue propertyValue)
Creates a new
FontDescriptor instance with the given property name and value. |
Modifier and Type | Method and Description |
---|---|
PropertyValue |
PropertyValue.append(OperatorType type)
Adds a new
Operator with the given OperatorType . |
PropertyValue |
PropertyValue.append(PropertyValueMember member)
Adds a new
PropertyValueMember to this PropertyValue . |
PropertyValue |
PropertyValue.copy() |
PropertyValue |
PropertyValue.important(boolean important)
Sets whether this
PropertyValue is marked as "!important". |
static PropertyValue |
PropertyValue.of(OperatorType separator,
Term term,
Term... terms)
Creates a new
PropertyValue with multiple terms separated by the given OperatorType . |
static PropertyValue |
PropertyValue.of(Term term)
Creates a new
PropertyValue with the given Term as the only member. |
static PropertyValue |
PropertyValue.of(Term term,
PropertyValueMember... members)
Creates a new
PropertyValue with one or more terms and operators. |
static PropertyValue |
PropertyValue.of(Term term,
Term... terms)
Creates a new
PropertyValue with multiple terms. |
PropertyValue |
Declaration.propertyValue()
Gets the property value.
|
Modifier and Type | Method and Description |
---|---|
SyntaxCollection<PropertyValue,PropertyValueMember> |
PropertyValue.members()
Gets the
SyntaxCollection of PropertyValueMember s. |
Modifier and Type | Method and Description |
---|---|
Declaration |
Declaration.propertyValue(PropertyValue propertyValue)
Sets a new property value.
|
Constructor and Description |
---|
Declaration(PropertyName propertyName,
PropertyValue propertyValue)
|
Declaration(Property propertyName,
PropertyValue propertyValue)
|
Modifier and Type | Method and Description |
---|---|
boolean |
Keyword.isOnlyValueIn(PropertyValue value)
Gets whether the given
PropertyValue only consists of one Term which is a KeywordValue with this
Keyword . |
Modifier and Type | Method and Description |
---|---|
void |
BasePlugin.propertyValue(PropertyValue propertyValue)
Override this method and add the
Rework , Observe or Validate annotation in order to receive events
for Syntax units of type PropertyValue . |
Modifier and Type | Method and Description |
---|---|
static PropertyValue |
Values.join(OperatorType operatorType,
Iterable<PropertyValue> toJoin)
Joins multiple
PropertyValue s together with the given OperatorType . |
Modifier and Type | Method and Description |
---|---|
static List<PropertyValue> |
Values.split(OperatorType operatorType,
PropertyValue value)
Splits the
PropertyValue at the given operator. |
Modifier and Type | Method and Description |
---|---|
static <T extends Term> |
Values.as(Class<T> klass,
PropertyValue value)
Helper method to convert or extract the more narrowly-typed
Term instance. |
static Optional<HexColorValue> |
Values.asHexColor(PropertyValue value)
Gets the single
HexColorValue within the given PropertyValue . |
static Optional<KeywordValue> |
Values.asKeyword(PropertyValue value)
Gets the single
KeywordValue within the given PropertyValue . |
static Optional<Keyword> |
Values.asKeywordConstant(PropertyValue value)
Same as
Values.asKeyword(PropertyValue) , except this returns the specific Keyword enum value (not the syntax unit). |
static Optional<NumericalValue> |
Values.asNumerical(PropertyValue value)
Gets the single
NumericalValue within the given PropertyValue . |
static Optional<StringValue> |
Values.asString(PropertyValue value)
Gets the single
StringValue within the given PropertyValue . |
static <T extends Term> |
Values.filter(Class<T> klass,
PropertyValue value)
Filters the terms in the given
PropertyValue to only the ones of the given class type. |
static List<PropertyValue> |
Values.split(OperatorType operatorType,
PropertyValue value)
Splits the
PropertyValue at the given operator. |
Modifier and Type | Method and Description |
---|---|
static PropertyValue |
Values.join(OperatorType operatorType,
Iterable<PropertyValue> toJoin)
Joins multiple
PropertyValue s together with the given OperatorType . |
Copyright (c) 2019, Salesforce.com, Inc. All rights reserved. Licensed under the BSD 3-Clause license. For full license text, see the LICENSE file in the repository.