|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.puppycrawl.tools.checkstyle.DefaultContext
public final class DefaultContext
A default implementation of the Context interface.
Constructor Summary | |
---|---|
DefaultContext()
|
Method Summary | |
---|---|
void |
add(java.lang.String aKey,
java.lang.Object aValue)
Adds a context entry. |
java.lang.Object |
get(java.lang.String aKey)
Searches for the value with the specified attribute key in this context. |
java.lang.String[] |
getAttributeNames()
Returns the names of all atttributes of this context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultContext()
Method Detail |
---|
public java.lang.Object get(java.lang.String aKey)
get
in interface Context
aKey
- the attribute key.
public java.lang.String[] getAttributeNames()
getAttributeNames
in interface Context
public void add(java.lang.String aKey, java.lang.Object aValue)
aKey
- the context keyaValue
- the value for aKey
|
Back to the Checkstyle Home Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |