public interface SimpleSelector extends SelectorPart
Note that a PseudoElementSelector
is not a simple selector.
Modifier and Type | Method and Description |
---|---|
SimpleSelector |
copy()
Performs a deep copy of the instance.
|
parent, type
append, destroy, group, group, isDestroyed, isFirst, isLast, next, 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, write
propagateBroadcast, shouldBreakBroadcast, status, status
SimpleSelector copy()
Syntax
This includes any inner syntax units, for example the selectors inside of a rule. This also carries over the comments and orphaned comments.
Keep in mind that copying is generally not preferred. Particularly, it is generally better to parse the source again than
to copy a Stylesheet
. Copying a specific syntax unit may be appropriate when duplicating the terms in a declaration
or the selector parts in a selector.
copy
in interface SelectorPart
copy
in interface Syntax
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.