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 voidadd(String key, Object value)Adds a context entry.Objectget(String key)Searches for the value with the specified attribute key in this context.Collection<String>getAttributeNames()Returns the names of all attributes of this context.
-
-
-
Method Detail
-
get
public Object get(String key)
Description copied from interface:ContextSearches for the value with the specified attribute key in this context.
-
getAttributeNames
public Collection<String> getAttributeNames()
Description copied from interface:ContextReturns the names of all attributes of this context.- Specified by:
getAttributeNamesin interfaceContext- Returns:
- the names of all attributes of this context.
-
-