public class Annotation extends Object implements AnnotationI
Modifier and Type | Field and Description |
---|---|
protected int |
end |
protected boolean |
forward
forward is defined by (start <= end) so forward field is really just a
convenience Also, because of this, setForward() should adjust the start
and end as well
|
protected int |
start |
protected String |
type |
Constructor and Description |
---|
Annotation() |
Annotation(int start,
int end) |
Modifier and Type | Method and Description |
---|---|
int |
getEnd() |
int |
getStart() |
String |
getType() |
boolean |
isForward() |
void |
setEnd(int end) |
void |
setForward(boolean forward) |
void |
setStart(int start) |
void |
setType(String type) |
String |
toString() |
protected int start
protected int end
protected boolean forward
protected String type
public int getStart()
getStart
in interface AnnotationI
public int getEnd()
getEnd
in interface AnnotationI
public void setStart(int start)
public void setEnd(int end)
public void setForward(boolean forward)
public boolean isForward()
public String getType()
public void setType(String type)
Copyright © 2021. All rights reserved.