|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object frysk.dom.DOMTag
public class DOMTag
DOMTag represents a tagged area (i.e. function declaration, varaible use, comment, etc) in a source code file
Field Summary | |
---|---|
static String |
LENGTH_ATTR
The end of the tag |
static String |
START_ATTR
The start of the tag |
static String |
TAG_NODE
The name of the DOM Element |
static String |
TOKEN_ATTR
The actual token of this tag |
static String |
TYPE_ATTR
The type of the tag |
Constructor Summary | |
---|---|
DOMTag(Element data)
Creates a new DOMTag using the given data as it's Element. |
|
DOMTag(String type,
String token,
int start)
Creates a new DOMTag |
Method Summary | |
---|---|
int |
getLength()
gets the length of the tag |
int |
getStart()
get the character offset from the start of the file |
String |
getToken()
get the token attribute for this tag |
String |
getType()
get the type attribute for this tag instance |
boolean |
isInRange(int test)
Tests to see if this tag encompasses the given index |
void |
setLength(int end)
set the length of this tag on this line |
void |
setStart(int start)
set the starting character offset of this tag |
void |
setType(String type)
change the type attribue of this tag |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String LENGTH_ATTR
public static final String START_ATTR
public static final String TYPE_ATTR
public static final String TOKEN_ATTR
public static final String TAG_NODE
Constructor Detail |
---|
public DOMTag(String type, String token, int start)
type
- The type of the tagtoken
- The tokenstart
- The start of the tag on the given linepublic DOMTag(Element data)
data
- is the JDOM elementMethod Detail |
---|
public void setType(String type)
type
- is the tag type to setpublic String getType()
public void setStart(int start)
start
- is the character offset for this tagpublic int getStart()
public void setLength(int end)
the
- ending character of this tagpublic int getLength()
public boolean isInRange(int test)
test
- The index, relative to the start of the file, to test
public String getToken()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |