org.aspectj.lang.reflect.SourceLocation
| Modifier and Type | Field and Description |
|---|---|
| private transient int | |
| private final int | |
| private final String | |
| private final int | |
| private boolean | |
| private int | |
| private static final long | |
| private final File | |
| private String | |
| private final int | |
| public static final ISourceLocation | UNKNOWN
used when SourceLocation is not available |
| Access | Constructor and Description |
|---|---|
| public | SourceLocation(File file, int line)
Same as SourceLocation(file, line, line, 0), except that column is not rendered during toString() |
| public | SourceLocation(File file, int line, int endLine)
same as SourceLocation(file, line, endLine, ISourceLocation.NO_COLUMN) |
| public | SourceLocation(File
File of the source; if null, use ISourceLocation.NO_FILE, not null file, int int starting line of the location - positive number line, int int ending line of the location - ≤ starting line endLine, int int character position of starting location - positive number column)
|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| public int | Returns: int actual column or 0 if not available per constructor treatment of ISourceLocation.NO_COLUMNImplements org. |
| public String | Returns: null String or application-specific contextImplements org. |
| public int | |
| public int | |
| public int | |
| public File | |
| public String | getSourceFileName()
Implements org. |
| public int | |
| public void | |
| public String | Returns: String {context\n}{file:}line{:column}Overrides java. |
| public static final void | |
| public static final void |
| cachedHashcode | back to summary |
|---|---|
| private transient int cachedHashcode | |
| column | back to summary |
|---|---|
| private final int column | |
| context | back to summary |
|---|---|
| private final String context | |
| endLine | back to summary |
|---|---|
| private final int endLine | |
| noColumn | back to summary |
|---|---|
| private boolean noColumn | |
| offset | back to summary |
|---|---|
| private int offset | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| sourceFile | back to summary |
|---|---|
| private final File sourceFile | |
| sourceFileName | back to summary |
|---|---|
| private String sourceFileName | |
| startLine | back to summary |
|---|---|
| private final int startLine | |
| UNKNOWN | back to summary |
|---|---|
| public static final ISourceLocation UNKNOWN used when SourceLocation is not available | |
| SourceLocation | back to summary |
|---|---|
| public SourceLocation(File file, int line) Same as SourceLocation(file, line, line, 0), except that column is not rendered during toString() | |
| SourceLocation | back to summary |
|---|---|
| public SourceLocation(File file, int line, int endLine) same as SourceLocation(file, line, endLine, ISourceLocation.NO_COLUMN) | |
| SourceLocation | back to summary |
|---|---|
public SourceLocation(File file, int line, int endLine, int column)
| |
| SourceLocation | back to summary |
|---|---|
| public SourceLocation(File file, int line, int endLine, int column, String context) | |
| SourceLocation | back to summary |
|---|---|
| public SourceLocation(File file, int line, int endLine, int column, String context, String sourceFileName) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) 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.
| |
| getColumn | back to summary |
|---|---|
| public int getColumn() Implements org.
| |
| getContext | back to summary |
|---|---|
| public String getContext() Implements org.
| |
| getEndLine | back to summary |
|---|---|
| public int getEndLine() Implements org.
| |
| getLine | back to summary |
|---|---|
| public int getLine() Implements org.
| |
| getOffset | back to summary |
|---|---|
| public int getOffset() Implements org.
| |
| getSourceFile | back to summary |
|---|---|
| public File getSourceFile() Implements org.
| |
| getSourceFileName | back to summary |
|---|---|
| public String getSourceFileName() Implements org. Doc from org. In the cases where getSourceFile().getName() returns a class file (for example when we have a binary aspect) this should return the name of the source file (for example BinaryAspect.aj)
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| setOffset | back to summary |
|---|---|
| public void setOffset(int i) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |
| validColumn | back to summary |
|---|---|
public static final void validColumn(int column)
| |
| validLine | back to summary |
|---|---|
public static final void validLine(int line)
| |