public class Context extends Object
Modifier | Constructor and Description |
---|---|
protected |
Context(String contextFormat,
Object... contextArgs) |
Modifier and Type | Method and Description |
---|---|
static Context |
forElement(Element element)
Create a
Context storing the context of the given Guice
Element . |
static Context |
format(String contextFmt,
Object... args)
Create a
Context from formatted text. |
static Context |
forText(String text)
Create a
Context from a text string. |
String |
toString() |
public static Context forElement(Element element)
Context
storing the context of the given Guice
Element
.public static Context format(String contextFmt, Object... args)
Context
from formatted text. The text will not be
formatted until toString()
is invoked.contextFmt
- format string, as with PrettyPrinter.format(String, Object...)
args
- arguments for the format string, as with
PrettyPrinter.format(String, Object...)
Copyright © 2008–2018. All rights reserved.