public class Region extends Object
| Constructor and Description |
|---|
Region() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
Integer |
getByteLength()
The length of the region in bytes.
|
Integer |
getByteOffset()
The zero-based offset from the beginning of the artifact of the first byte in the region.
|
Integer |
getCharLength()
The length of the region in characters.
|
Integer |
getCharOffset()
The zero-based offset from the beginning of the artifact of the first character in the region.
|
Integer |
getEndColumn()
The column number of the character following the end of the region.
|
Integer |
getEndLine()
The line number of the last character in the region.
|
Message |
getMessage()
Encapsulates a message intended to be read by the end user.
|
PropertyBag |
getProperties()
Key/value pairs that provide additional information about the object.
|
ArtifactContent |
getSnippet()
Represents the contents of an artifact.
|
String |
getSourceLanguage()
Specifies the source language, if any, of the portion of the artifact specified by the region object.
|
Integer |
getStartColumn()
The column number of the first character in the region.
|
Integer |
getStartLine()
The line number of the first character in the region.
|
int |
hashCode() |
void |
setByteLength(Integer byteLength)
The length of the region in bytes.
|
void |
setByteOffset(Integer byteOffset)
The zero-based offset from the beginning of the artifact of the first byte in the region.
|
void |
setCharLength(Integer charLength)
The length of the region in characters.
|
void |
setCharOffset(Integer charOffset)
The zero-based offset from the beginning of the artifact of the first character in the region.
|
void |
setEndColumn(Integer endColumn)
The column number of the character following the end of the region.
|
void |
setEndLine(Integer endLine)
The line number of the last character in the region.
|
void |
setMessage(Message message)
Encapsulates a message intended to be read by the end user.
|
void |
setProperties(PropertyBag properties)
Key/value pairs that provide additional information about the object.
|
void |
setSnippet(ArtifactContent snippet)
Represents the contents of an artifact.
|
void |
setSourceLanguage(String sourceLanguage)
Specifies the source language, if any, of the portion of the artifact specified by the region object.
|
void |
setStartColumn(Integer startColumn)
The column number of the first character in the region.
|
void |
setStartLine(Integer startLine)
The line number of the first character in the region.
|
String |
toString() |
Region |
withByteLength(Integer byteLength) |
Region |
withByteOffset(Integer byteOffset) |
Region |
withCharLength(Integer charLength) |
Region |
withCharOffset(Integer charOffset) |
Region |
withEndColumn(Integer endColumn) |
Region |
withEndLine(Integer endLine) |
Region |
withMessage(Message message) |
Region |
withProperties(PropertyBag properties) |
Region |
withSnippet(ArtifactContent snippet) |
Region |
withSourceLanguage(String sourceLanguage) |
Region |
withStartColumn(Integer startColumn) |
Region |
withStartLine(Integer startLine) |
public Integer getStartLine()
public void setStartLine(Integer startLine)
public Integer getStartColumn()
public void setStartColumn(Integer startColumn)
public Integer getEndLine()
public void setEndLine(Integer endLine)
public Integer getEndColumn()
public void setEndColumn(Integer endColumn)
public Integer getCharOffset()
public void setCharOffset(Integer charOffset)
public Integer getCharLength()
public void setCharLength(Integer charLength)
public Integer getByteOffset()
public void setByteOffset(Integer byteOffset)
public Integer getByteLength()
public void setByteLength(Integer byteLength)
public ArtifactContent getSnippet()
public void setSnippet(ArtifactContent snippet)
public Region withSnippet(ArtifactContent snippet)
public Message getMessage()
public void setMessage(Message message)
public String getSourceLanguage()
public void setSourceLanguage(String sourceLanguage)
public PropertyBag getProperties()
public void setProperties(PropertyBag properties)
public Region withProperties(PropertyBag properties)
Copyright © 2020 Contrast Security. All rights reserved.