|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object frysk.dom.DOMFunction
public class DOMFunction
DOMFunction represents a function element to the DOM for any functions found within a particular source file.
Field Summary | |
---|---|
static String |
END_ATTR
|
static String |
FUNCTION_CALL
|
static String |
FUNCTION_NAME_ATTR
|
static String |
FUNCTION_NODE
|
static String |
LINE_END_ATTR
|
static String |
LINE_START_ATTR
|
private Element |
myElement
|
private DOMSource |
parent
|
static String |
SOURCE_NAME_ATTR
|
static String |
START_ATTR
|
Constructor Summary | |
---|---|
DOMFunction(Element data)
assign a JDOM element to this function name |
Method Summary | |
---|---|
static DOMFunction |
createDOMFunction(DOMSource parent,
String name,
String source,
int lineStart,
int lineEnd,
int start,
int end,
String func_call)
creates a DOMFunction element to a source file in the DOM |
static DOMFunction |
createDOMFunction(String name,
String source,
int lineStart,
int lineEnd,
int start,
int end,
String func_call)
creates a DOMFunction |
protected Element |
getElement()
returns the JDOM Element associated with this Function |
int |
getEnd()
gets the char offset from the start of the file of the last char of the function |
int |
getEndingLine()
gets the ending line number in the source file for this function |
String |
getFunctionCall()
|
int |
getLineCount()
gets the length in lines of the code block that will be inlined |
String[] |
getLines()
gets the lines associated with this function |
String |
getName()
gets the name of the inlined code |
DOMSource |
getSource()
Since all functions are contained in source files, just return the parent source file. |
int |
getStart()
gets the char offset from the start of the file of the first char of the function |
int |
getStartingLine()
gets the starting line number in the source file for this function |
void |
setEnd(int endingchar)
gets the char offset from the start of the file of the last char of the function |
void |
setEndingLine(int linenum)
sets the ending line number in the source file for this function |
void |
setParent(DOMSource parent)
Set the parent Element for this DOMFunction |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String FUNCTION_NODE
public static final String END_ATTR
public static final String START_ATTR
public static final String FUNCTION_NAME_ATTR
public static final String SOURCE_NAME_ATTR
public static final String LINE_START_ATTR
public static final String LINE_END_ATTR
public static final String FUNCTION_CALL
private DOMSource parent
private Element myElement
Constructor Detail |
---|
public DOMFunction(Element data)
data
- is a JDOM elementMethod Detail |
---|
public static DOMFunction createDOMFunction(String name, String source, int lineStart, int lineEnd, int start, int end, String func_call)
name
- is the name of this DOMFunctionsource
- is the source this function was found inlineStart
- is the starting line number in the source file of this functionlineEnd
- is the ending line number in the source file of this functionstart
- is the starting character of the function from the start of the fileend
- is the ending character of the function from the start of the file
public static DOMFunction createDOMFunction(DOMSource parent, String name, String source, int lineStart, int lineEnd, int start, int end, String func_call)
parent
- is the image element to attach this DOMFunction toname
- is the name of this DOMFunctionsource
- is the source this function was found inlineStart
- is the starting line number in the source file of this functionlineEnd
- is the ending line number in the source file of this functionstart
- is the starting character of the function from the start of the fileend
- is the ending character of the function from the start of the file
public void setParent(DOMSource parent)
parent
- The DOM parent of this Objectpublic String getName()
public int getLineCount()
public int getStart()
public int getEnd()
public void setEnd(int endingchar)
The
- end of the function/inlined code as a char offset from the start of the filepublic DOMSource getSource()
public int getStartingLine()
public void setEndingLine(int linenum)
an
- integer with the starting line number in the source file to set it topublic int getEndingLine()
public String[] getLines()
public String getFunctionCall()
protected Element getElement()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |