|
|
|||||||||||
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
Constructor Summary | |
---|---|
protected |
MakumbaJspAnalyzer()
|
Method Summary | |
---|---|
void |
elExpression(ELData ed,
Object status)
Performs analysis for a EL expression (see Expression ) |
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 EL_CACHE
public static final String EL_DATA_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
public static final String SECTION_EVENT_TO_ID
public static final String SECTION_IDEVENT_TO_TYPE
public static final String SECTION_DATA
static String[] listTags
static String[] oldFormTags
static String[] formTags
static String[] formTagNames
static String[] elExpressions
static String[] elExpressionNames
static final Map<String,Class<?>> tagClasses
static final Map<String,Class<?>> elClasses
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 JspAnalyzer
td
- the TagData holding the informationstatus
- the status of the parsingpublic void simpleTag(TagData td, Object status)
simpleTag
in interface JspAnalyzer
td
- the TagData holding the informationstatus
- the status of the parsingpublic void elExpression(ELData ed, Object status)
Expression
)
elExpression
in interface JspAnalyzer
td
- the TagData holding the informationstatus
- the status of the parsingprotected void handleNonMakumbaTags(TagData td, Object status)
td
- the TagData holding the informationstatus
- the status of the parsingprotected void handleNonMakumbaSystemTags(TagData td, Object status)
td
- the TagData holding the informationstatus
- the status of the parsingpublic void startTag(TagData td, Object status)
startTag
in interface JspAnalyzer
td
- the TagData holding the informationstatus
- the status of the parsingJspAnalyzer.endTag(TagData, Object)
public void endTag(TagData td, Object status)
endTag
in interface JspAnalyzer
td
- the TagData holding the informationstatus
- the status of the parsingpublic Object makeStatusHolder(Object initialStatus)
JspAnalyzer
makeStatusHolder
in interface JspAnalyzer
initialStatus
- 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 JspAnalyzer
status
- 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 |