Warning
This class is an implementation detail and is only public so that it can be used by two packages. You should NOT consider this public API.
StyleAssociation is used to lookup a style for a particular component (or region).
| Modifier and Type | Field and Description |
|---|---|
| private int | _id
Identifier for this association. |
| private Matcher | _matcher
Matcher used for testing if path matches that of pattern. |
| private Pattern | _pattern
Pattern used for matching. |
| private SynthStyle | _style
The style |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static StyleAssociation | createStyleAssociation(String text, SynthStyle style)
Returns a StyleAssociation that can be used to determine if a particular string matches the returned association. |
| public static StyleAssociation | createStyleAssociation(String text, SynthStyle style, int id)
Returns a StyleAssociation that can be used to determine if a particular string matches the returned association. |
| public int | getID()
Returns the developer specified identifier for this association, will
be |
| public SynthStyle | Returns: the style this association is mapped to.Returns the style this association is mapped to. |
| public String | Returns: the text used in matching the string.Returns the text used in matching the string. |
| public synchronized boolean | Returns: true if thisStyleAssociation matches the
passed in CharSequence.if this StyleAssociation.Returns true if this |
| _id | back to summary |
|---|---|
| private int _id Identifier for this association. | |
| _matcher | back to summary |
|---|---|
| private Matcher _matcher Matcher used for testing if path matches that of pattern. | |
| _pattern | back to summary |
|---|---|
| private Pattern _pattern Pattern used for matching. | |
| _style | back to summary |
|---|---|
| private SynthStyle _style The style | |
| StyleAssociation | back to summary |
|---|---|
| private StyleAssociation(String text, SynthStyle style, int id) throws PatternSyntaxException | |
| createStyleAssociation | back to summary |
|---|---|
| public static StyleAssociation createStyleAssociation(String text, SynthStyle style) throws PatternSyntaxException Returns a StyleAssociation that can be used to determine if a particular string matches the returned association. | |
| createStyleAssociation | back to summary |
|---|---|
| public static StyleAssociation createStyleAssociation(String text, SynthStyle style, int id) throws PatternSyntaxException Returns a StyleAssociation that can be used to determine if a particular string matches the returned association. | |
| getID | back to summary |
|---|---|
| public int getID() Returns the developer specified identifier for this association, will
be | |
| getStyle | back to summary |
|---|---|
| public SynthStyle getStyle() Returns the style this association is mapped to.
| |
| getText | back to summary |
|---|---|
| public String getText() Returns the text used in matching the string.
| |
| matches | back to summary |
|---|---|
| public synchronized boolean matches(CharSequence path) Returns true if this
| |