|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.puppycrawl.tools.checkstyle.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)
Context
get
in interface Context
aKey
- the attribute key.
Context
public java.lang.String[] getAttributeNames()
Context
getAttributeNames
in interface Context
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 |