public final class LinearGradientFunctionValue extends AbstractTerm implements FunctionValue
Use repeating(boolean)
if the gradient is a repeating-linear-gradient.
LinearGradientPlugin
Constructor and Description |
---|
LinearGradientFunctionValue(int line,
int column,
String args)
Constructs a new instance of a
LinearGradientFunctionValue . |
LinearGradientFunctionValue(String args)
Constructs a new instance of a
LinearGradientFunctionValue (used for dynamically created Syntax units). |
Modifier and Type | Method and Description |
---|---|
String |
args()
Gets the raw function arguments.
|
LinearGradientFunctionValue |
args(String args)
Sets the function arguments.
|
LinearGradientFunctionValue |
copy()
For implementations: do not copy comments or orphaned comments, instead be sure to call
AbstractSyntax.copiedFrom(Syntax) on the
new copy. |
String |
name()
Gets the name of this object.
|
Optional<Prefix> |
prefix()
Gets the prefix, if present.
|
LinearGradientFunctionValue |
prefix(Prefix prefix)
Sets the vendor prefix.
|
boolean |
repeating()
Gets whether this is a repeating-linear-gradient.
|
LinearGradientFunctionValue |
repeating(boolean repeating)
Sets whether this linear-gradient is a repeating-linear-gradient.
|
String |
textualValue()
Gets the raw function arguments.
|
String |
unprefixedName()
Gets the name of the function without the prefix, is present.
|
void |
write(StyleWriter writer,
StyleAppendable appendable)
Outputs this
Writable 's string representation. |
declaration, isTerm, self
append, destroy, group, group, isDestroyed, isFirst, isLast, isWritable, next, parent, prepend, previous, replaceWith, unlink
annotate, annotateUnlessPresent, annotation, annotations, column, comment, comment, comments, comments, comments, copiedFrom, equals, hasAnnotation, hasAnnotation, hashCode, hasSourcePosition, id, line, orphanedComments, orphanedComments, orphanedComments, propagateBroadcast, shouldBreakBroadcast, status, status, toString, toString, writesOwnComments, writesOwnOrphanedComments
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
declaration
isTerm
append, destroy, group, group, isDestroyed, isFirst, isLast, next, parent, prepend, previous, replaceWith, unlink
annotate, annotateUnlessPresent, annotation, annotations, column, comment, comment, comments, comments, comments, hasAnnotation, hasAnnotation, hasSourcePosition, id, line, orphanedComments, orphanedComments, orphanedComments, toString, writesOwnComments, writesOwnOrphanedComments
isWritable
propagateBroadcast, shouldBreakBroadcast, status, status
public LinearGradientFunctionValue(int line, int column, String args)
LinearGradientFunctionValue
.
If dynamically creating a new instance then use LinearGradientFunctionValue(String)
instead.
line
- The line number.column
- The column number.args
- The raw function args.public LinearGradientFunctionValue(String args)
LinearGradientFunctionValue
(used for dynamically created Syntax
units).args
- The raw function args.public LinearGradientFunctionValue args(String args)
args
- The raw function args.public String args()
public LinearGradientFunctionValue repeating(boolean repeating)
repeating
- Specify true to indicate this is a repeating-linear-gradient.public boolean repeating()
public LinearGradientFunctionValue prefix(Prefix prefix)
prefix
- The prefix, or null to remove.public Optional<Prefix> prefix()
Optional
if not present.public String textualValue()
args()
, which is identical to this method.textualValue
in interface Term
public String unprefixedName()
public void write(StyleWriter writer, StyleAppendable appendable) throws IOException
Writable
Writable
's string representation.
Important notes for implementation:
Do not use the StyleWriter
in an attempt to write direct content (Strings, chars, etc...). Use the StyleAppendable
.
The StyleWriter
should be used to make decisions based on writer settings (e.g., compressed vs. verbose output
mode), as well as for writing inner or child Writable
s. Do not call the this method method directly on inner
or child Writable
s! That would bypass any overrides that are set on the StyleWriter
. Use StyleWriter.writeInner(Writable, StyleAppendable)
instead.
write
in interface Writable
writer
- Writer to use for output settings and for writing inner Writable
s.appendable
- Append direct content to this StyleAppendable
.IOException
- If an I/O error occurs.public LinearGradientFunctionValue copy()
AbstractSyntax
AbstractSyntax.copiedFrom(Syntax)
on the
new copy.copy
in interface PropertyValueMember
copy
in interface Term
copy
in interface Syntax
copy
in class AbstractSyntax
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.