com.puppycrawl.tools.checkstyle

Class DefaultContext

Implemented Interfaces:
Context

public final class DefaultContext
extends java.lang.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

See Also:
Context


getAttributeNames

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

See Also:
Context