| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final String | |
| private final int | |
| private final int | |
| pack-priv static final String | |
| private final OriginType | |
| private final String | |
| private final String |
| Access | Constructor and Description |
|---|---|
| protected | SimpleConfigOrigin(String description, int lineNumber, int endLineNumber, OriginType originType, String urlOrNull, String resourceOrNull, List<String> commentsOrNull)
|
| Modifier and Type | Method and Description |
|---|---|
| pack-priv SimpleConfigOrigin | |
| pack-priv SimpleConfigOrigin | |
| pack-priv static Map | |
| public List | comments()
Implements com. Returns any comments that appeared to "go with" this place in the file. |
| public String | description()
Implements com. Returns a string describing the origin of a value or exception. |
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. Indicates whether some other object is "equal to" this one. |
| pack-priv static Map | |
| public String | filename()
Implements com. Returns a filename describing the origin. |
| pack-priv static SimpleConfigOrigin | |
| pack-priv static SimpleConfigOrigin | |
| public int | |
| public int | lineNumber()
Implements com. Returns a line number where the value or exception originated. |
| pack-priv static ConfigOrigin | |
| pack-priv static ConfigOrigin | |
| pack-priv static ConfigOrigin | |
| private static SimpleConfigOrigin | |
| private static SimpleConfigOrigin | |
| pack-priv static SimpleConfigOrigin | |
| pack-priv static SimpleConfigOrigin | |
| pack-priv static SimpleConfigOrigin | |
| pack-priv static SimpleConfigOrigin | |
| pack-priv static SimpleConfigOrigin | |
| pack-priv static SimpleConfigOrigin | |
| pack-priv OriginType | |
| pack-priv SimpleConfigOrigin | |
| public String | resource()
Implements com. Returns a classpath resource name describing the origin. |
| private static int | |
| pack-priv Map | |
| pack-priv Map | |
| public String | |
| public URL | |
| public SimpleConfigOrigin | withComments(List<String>
the comments used on the returned origin comments)Implements com. Returns a |
| public SimpleConfigOrigin | withLineNumber(int
the new line number lineNumber)Implements com. Returns a |
| commentsOrNull | back to summary |
|---|---|
| private final List<String> commentsOrNull | |
| description | back to summary |
|---|---|
| private final String description | |
| endLineNumber | back to summary |
|---|---|
| private final int endLineNumber | |
| lineNumber | back to summary |
|---|---|
| private final int lineNumber | |
| MERGE_OF_PREFIX | back to summary |
|---|---|
| pack-priv static final String MERGE_OF_PREFIX | |
| originType | back to summary |
|---|---|
| private final OriginType originType | |
| resourceOrNull | back to summary |
|---|---|
| private final String resourceOrNull | |
| urlOrNull | back to summary |
|---|---|
| private final String urlOrNull | |
| SimpleConfigOrigin | back to summary |
|---|---|
| protected SimpleConfigOrigin(String description, int lineNumber, int endLineNumber, OriginType originType, String urlOrNull, String resourceOrNull, List<String> commentsOrNull) | |
| addURL | back to summary |
|---|---|
| pack-priv SimpleConfigOrigin addURL(URL url) | |
| appendComments | back to summary |
|---|---|
| pack-priv SimpleConfigOrigin appendComments(List<String> comments) | |
| applyFieldsDelta | back to summary |
|---|---|
| pack-priv static Map | |
| comments | back to summary |
|---|---|
| public List Implements com. Doc from com. Returns any comments that appeared to "go with" this place in the file. Often an empty list, but never null. The details of this are subject to change, but at the moment comments that are immediately before an array element or object field, with no blank line after the comment, "go with" that element or field. | |
| description | back to summary |
|---|---|
| public String description() Implements com. Doc from com. Returns a string describing the origin of a value or exception. This will never return null. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| fieldsDelta | back to summary |
|---|---|
| pack-priv static Map | |
| filename | back to summary |
|---|---|
| public String filename() Implements com. Doc from com. Returns a filename describing the origin. This will return null if the origin was not a file. | |
| fromBase | back to summary |
|---|---|
| pack-priv static SimpleConfigOrigin fromBase(SimpleConfigOrigin baseOrigin, Map<SerializedConfigValue. | |
| fromFields | back to summary |
|---|---|
| pack-priv static SimpleConfigOrigin fromFields(Map<SerializedConfigValue. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| lineNumber | back to summary |
|---|---|
| public int lineNumber() Implements com. Doc from com. Returns a line number where the value or exception originated. This will return -1 if there's no meaningful line number.
| |
| mergeOrigins | back to summary |
|---|---|
| pack-priv static ConfigOrigin mergeOrigins(ConfigOrigin a, ConfigOrigin b) | |
| mergeOrigins | back to summary |
|---|---|
| pack-priv static ConfigOrigin mergeOrigins(List<? extends AbstractConfigValue> stack) | |
| mergeOrigins | back to summary |
|---|---|
| pack-priv static ConfigOrigin mergeOrigins(Collection<? extends ConfigOrigin> stack) | |
| mergeThree | back to summary |
|---|---|
| private static SimpleConfigOrigin mergeThree(SimpleConfigOrigin a, SimpleConfigOrigin b, SimpleConfigOrigin c) | |
| mergeTwo | back to summary |
|---|---|
| private static SimpleConfigOrigin mergeTwo(SimpleConfigOrigin a, SimpleConfigOrigin b) | |
| newEnvVariable | back to summary |
|---|---|
| pack-priv static SimpleConfigOrigin newEnvVariable(String description) | |
| newFile | back to summary |
|---|---|
| pack-priv static SimpleConfigOrigin newFile(String filename) | |
| newResource | back to summary |
|---|---|
| pack-priv static SimpleConfigOrigin newResource(String resource, URL url) | |
| newResource | back to summary |
|---|---|
| pack-priv static SimpleConfigOrigin newResource(String resource) | |
| newSimple | back to summary |
|---|---|
| pack-priv static SimpleConfigOrigin newSimple(String description) | |
| newURL | back to summary |
|---|---|
| pack-priv static SimpleConfigOrigin newURL(URL url) | |
| originType | back to summary |
|---|---|
| pack-priv OriginType originType() | |
| prependComments | back to summary |
|---|---|
| pack-priv SimpleConfigOrigin prependComments(List<String> comments) | |
| resource | back to summary |
|---|---|
| public String resource() Implements com. Doc from com. Returns a classpath resource name describing the origin. This will return null if the origin was not a classpath resource. | |
| similarity | back to summary |
|---|---|
| private static int similarity(SimpleConfigOrigin a, SimpleConfigOrigin b) | |
| toFields | back to summary |
|---|---|
| pack-priv Map | |
| toFieldsDelta | back to summary |
|---|---|
| pack-priv Map | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| url | back to summary |
|---|---|
| public URL url() Implements com. Doc from com. Returns a URL describing the origin. This will return null if the origin has no meaningful URL. | |
| withComments | back to summary |
|---|---|
| public SimpleConfigOrigin withComments(List<String> comments) Implements com. Doc from com. Returns a
Note that when the given comments are equal to the comments on this object,
a new instance may not be created and
| |
| withLineNumber | back to summary |
|---|---|
| public SimpleConfigOrigin withLineNumber(int lineNumber) Implements com. Doc from com. Returns a
Note that when the given lineNumber are equal to the lineNumber on this
object, a new instance may not be created and
| |