|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--xbn.XBNObject | +--xbn.jdlcode.SplitLinkCode
Example link: <A HREF="~JD~t~EJD~">~JD~t~EJD~</a> --> ../template/Template.html
(see package description for details).
Source code: SplitLinkCode.java
SplitLinkCode takes the code of a JavaDoc Link Code, and splits it into it's fundamental parts: Class name, function/constructor name, and parameters. It can then take these pieces and generate the actual link.
Fields inherited from class xbn.XBNObject |
bFALSE_IN_PRODUCTION, bTRUE_IN_PRODUCTION, sCNSTR, sES, sLINE_SEP |
Constructor Summary | |
SplitLinkCode(String s_linkCode)
Create a SplitLinkCode. |
Method Summary | |
String |
getClassName()
What is the class name in this link? |
String |
getCnstrFuncName()
What is the function name in this link? |
int |
getParameterCount()
How many parameters exist in this link? |
int |
getParamIsArrayCount()
How many parameters are arrays? |
String |
getParamList(String s_divider)
|
String |
getParamName(int i_dx)
Get the parameter at the requested array index. |
boolean |
isParamArray(int i_dx)
Is the parameter at the requested array index an array? |
Methods inherited from class xbn.XBNObject |
getXMsgPrefix, sop, sopl, sopl, throwAX, throwAXIfBadStr, throwAXIfNull, throwAXSpoof |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SplitLinkCode(String s_linkCode)
Create a SplitLinkCode.
The form of a JavaDoc Link Code is the following:
class_abbrev#function_constructor_abbrev(parameter1[],parameter2[],...)
s_linkCode
- The string containing the JavaDoc Link Code. Must conform to the following rules:#x()
is illegal, but x#y()
is not.functionName(t,s,s)
Class
functionName(s,optr)
Class#functionName(s,optr)
Class#functionName()
(Legal in SplitLinkCode, but not ReportBadJDLinkCodes. More information)Class()
Class(s)
Class(s[])
Class(1,2,3,4,5)
Class#functionName(1,2,3,4,5)
Class#functionName(1[],2,3,4,5)
Class#functionName(1,2[],3,4,5)
Class#functionName(1,2,3[],4,5)
Class#functionName(1,2,3,4[],5)
Class#functionName(1,2,3,4,5[])
Class#functionName(1[],2[],3,4,5)
Class#functionName(1[],2,3[],4,5)
Class#functionName(1[],2,3,4[],5)
Class#functionName(1,2[],3[],4[],5[])
Class#functionName(1[],2,3[],4[],5[])
Class#functionName(1[],2[],3,4[],5[])
Class#functionName(1[],2[],3[],4,5[])
Class#functionName(1[],2[],3[],4[],5)
Class#functionName(1,2,3[],4[],5[])
Class#functionName(1[],2[],3[],4[],5[])
Class#functionName(x,e,e,o,e)
functionName(12)
setString(t,s,s)
null
empty string
[]
##
)(
))
((
()
() ()
,()
()#
(#)
(,)
(,,,,)
#(,,,,)
(,,1,,)
#(,,1,,)
(1,2,,4,5)
#(1,2,,4,5)
#functionName(1,2,3,4,5)
Class#(1,2,3,4,5)
(12)
(1,2,3,4,5)
Class[](s)
Class(s)[]
Class([])
Class([]s)
Method Detail |
public String getClassName()
What is the class name in this link?
public String getCnstrFuncName()
What is the function name in this link?
public int getParameterCount()
How many parameters exist in this link?
public int getParamIsArrayCount()
How many parameters are arrays?
public String getParamName(int i_dx)
Get the parameter at the requested array index.
i_dx
- The array index of the parameter. Must range zero..[getParameterCount - 1], inclusive.AssertException
- If getParameterCount equals zero.public boolean isParamArray(int i_dx)
Is the parameter at the requested array index an array?
i_dx
- The array index of the parameter. Must range zero..[getParameterCount - 1], inclusive.AssertException
- If getParameterCount equals zero.public final String getParamList(String s_divider)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1997-2003, Jeff Epstein, All Rights Reserved. See top of source code files for copyright notice.
http://sourceforge.net/projects/xbnjava