com.puppycrawl.tools.checkstyle

Class DefaultContext

Implemented Interfaces:
Context

public final class DefaultContext
extends Object
implements Context

A default implementation of the Context interface.
Author:
lkuehne

Method Summary

void
add(String aKey, Object aValue)
Adds a context entry.
Object
get(String aKey)
String[]
getAttributeNames()

Method Details

add

public void add(String aKey,
                Object aValue)
Adds a context entry.
Parameters:
aKey - the context key
aValue - the value for aKey

get

public Object get(String aKey)
Specified by:
get in interface Context

getAttributeNames

public String[] getAttributeNames()
Specified by:
getAttributeNames in interface Context