public class AttributeSupport extends Object implements Attributeable
ALSO_IMPORT, DEFAULT_VALUE, INIT, INIT_FUNCTION, LAZY_INITAT, CB, CC, CLP, COLN, COMA, CP, DOT, DQ, EMPTY, EQ, EXTENDS, GT, IMPLEMENTS, INDENT, JAVA_LANG, JAVA_LANG_ENUM, JAVA_LANG_OBJECT, JAVA_LANG_STRING, LT, NEWLINE, NEWLINE_PATTERN, OB, OC, OP, Q, SEMICOLN, SEMICOLN_SUFFIX_PATTERN, SPACE, STAR, THROWS, VARARG| Constructor and Description |
|---|
AttributeSupport(Map<AttributeKey,Object> attributes) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getAttribute(AttributeKey<T> key) |
Map<AttributeKey,Object> |
getAttributes() |
<T> boolean |
hasAttribute(AttributeKey<T> key) |
public AttributeSupport(Map<AttributeKey,Object> attributes)
public Map<AttributeKey,Object> getAttributes()
getAttributes in interface Attributeablepublic <T> T getAttribute(AttributeKey<T> key)
getAttribute in interface Attributeablepublic <T> boolean hasAttribute(AttributeKey<T> key)
hasAttribute in interface AttributeableCopyright © 2023. All rights reserved.