|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.makumba.commons.MakumbaJspAnalyzer
public class MakumbaJspAnalyzer
This class analyzes a JSP taking into account the specifics of Makumba tags. When implementing a new Makumba tag, be
sure to add it to on of listTags, oldFormTags or formTags. TODO maybe extract some
commonly used methods and add them to a generic analyser
TODO maybe extract some commonly used methods and add them to a generic analyser
| Field Summary | |
|---|---|
static String |
ADD_FORM_DATA_TYPE
|
static String |
BASE_POINTER_TYPES
|
static String |
DS_ATTR
|
static String |
FORM_TAGS_DEPENDENCY_CACHE
|
static String |
FORMATTERS
|
(package private) static String[] |
formTagNames
|
(package private) static List<String> |
formTagNamesList
|
(package private) static String[] |
formTags
|
static String |
INPUT_TYPES
|
static String |
LAZY_EVALUATED_INPUTS
|
(package private) static String[] |
listTags
|
static String |
NESTED_FORM_NAMES
|
(package private) static String[] |
oldFormTags
|
static String |
PROJECTION_ORIGIN_CACHE
|
static String |
QL_HQL
|
static String |
QL_OQL
|
static String |
QUERY
|
static String |
QUERY_LANGUAGE
|
static String |
TAG_CACHE
|
static String |
TAG_DATA_CACHE
|
(package private) static Map<String,Class<?>> |
tagClasses
|
static String |
VALUE_COMPUTERS
|
| Constructor Summary | |
|---|---|
protected |
MakumbaJspAnalyzer()
|
| Method Summary | |
|---|---|
Object |
endPage(Object status)
The end of the page |
void |
endTag(TagData td,
Object status)
Performs analysis for the end of a tag |
static JspAnalyzer |
getInstance()
|
static String |
getQueryLanguage(PageCache pageCache)
|
protected void |
handleNonMakumbaSystemTags(TagData td,
Object status)
Handles non-mak system tags. |
protected void |
handleNonMakumbaTags(TagData td,
Object status)
Handles non-mak tags. |
static boolean |
isHQLPage(PageCache pageCache)
|
static boolean |
isOQLPage(PageCache pageCache)
|
Object |
makeStatusHolder(Object initialStatus)
Makes a status holder, which is passed to all other methods |
void |
simpleTag(TagData td,
Object status)
Performs analysis for a simple tag |
void |
startTag(TagData td,
Object status)
Performs analysis for the start of a tag |
void |
systemTag(TagData td,
Object status)
Performs analysis for a system tag FIXME this should be thought of much more |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String TAG_CACHE
public static final String TAG_DATA_CACHE
public static final String FORM_TAGS_DEPENDENCY_CACHE
public static final String NESTED_FORM_NAMES
public static final String INPUT_TYPES
public static final String LAZY_EVALUATED_INPUTS
public static final String BASE_POINTER_TYPES
public static final String VALUE_COMPUTERS
public static final String QUERY
public static final String QUERY_LANGUAGE
public static final String DS_ATTR
public static final String FORMATTERS
public static final String PROJECTION_ORIGIN_CACHE
public static final String ADD_FORM_DATA_TYPE
static String[] listTags
static String[] oldFormTags
static String[] formTags
static String[] formTagNames
static final Map<String,Class<?>> tagClasses
static final List<String> formTagNamesList
public static final String QL_OQL
public static final String QL_HQL
| Constructor Detail |
|---|
protected MakumbaJspAnalyzer()
| Method Detail |
|---|
public static JspAnalyzer getInstance()
public void systemTag(TagData td,
Object status)
systemTag in interface JspAnalyzertd - the TagData holding the informationstatus - the status of the parsing
public void simpleTag(TagData td,
Object status)
simpleTag in interface JspAnalyzertd - the TagData holding the informationstatus - the status of the parsing
protected void handleNonMakumbaTags(TagData td,
Object status)
td - the TagData holding the informationstatus - the status of the parsing
protected void handleNonMakumbaSystemTags(TagData td,
Object status)
td - the TagData holding the informationstatus - the status of the parsing
public void startTag(TagData td,
Object status)
startTag in interface JspAnalyzertd - the TagData holding the informationstatus - the status of the parsingJspAnalyzer.endTag(TagData, Object)
public void endTag(TagData td,
Object status)
endTag in interface JspAnalyzertd - the TagData holding the informationstatus - the status of the parsingpublic Object makeStatusHolder(Object initialStatus)
JspAnalyzer
makeStatusHolder in interface JspAnalyzerinitialStatus - an initial status to be passed to the JspAnalyzer. for example, the pageContext for an example-based
analyzerpublic Object endPage(Object status)
JspAnalyzer
endPage in interface JspAnalyzerstatus - the status of the parsing
public static String getQueryLanguage(PageCache pageCache)
public static boolean isOQLPage(PageCache pageCache)
public static boolean isHQLPage(PageCache pageCache)
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||