|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.puppycrawl.tools.checkstyle.DefaultContext
public final class DefaultContext
A default implementation of the Context interface.
Constructor Summary | |
---|---|
DefaultContext()
|
Method Summary | |
---|---|
void |
add(String aKey,
Object aValue)
Adds a context entry. |
Object |
get(String aKey)
Searches for the value with the specified attribute key in this context. |
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 Object get(String aKey)
get
in interface Context
aKey
- the attribute key.
public String[] getAttributeNames()
getAttributeNames
in interface Context
public void add(String aKey, 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 |