Package com.puppycrawl.tools.checkstyle
Class DefaultContext
- java.lang.Object
-
- com.puppycrawl.tools.checkstyle.DefaultContext
-
-
Constructor Summary
Constructors Constructor Description DefaultContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(java.lang.String key, java.lang.Object value)
Adds a context entry.java.lang.Object
get(java.lang.String key)
Searches for the value with the specified attribute key in this context.java.util.Collection<java.lang.String>
getAttributeNames()
Returns the names of all attributes of this context.
-
-
-
Method Detail
-
get
public java.lang.Object get(java.lang.String key)
Description copied from interface:Context
Searches for the value with the specified attribute key in this context.
-
getAttributeNames
public java.util.Collection<java.lang.String> getAttributeNames()
Description copied from interface:Context
Returns the names of all attributes of this context.- Specified by:
getAttributeNames
in interfaceContext
- Returns:
- the names of all attributes of this context.
-
add
public void add(java.lang.String key, java.lang.Object value)
Adds a context entry.- Parameters:
key
- the context keyvalue
- the value for key
-
-