http://dev.helma.org/bugs/show_bug.cgi?id=688 Summary: Implement skin/macro introspection
Product: Helma
Version: CVS trunk
Platform: Other
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P5
Component: Web Support
AssignedTo:
helma-dev@...
ReportedBy:
interface@...
Created an attachment (id=124)
--> (
http://dev.helma.org/bugs/attachment.cgi?id=124)
Patch for Skin.java enabling skin/macro introspection
I created a patch for Skin.java that enables some fields and methods for skin
and macro introspection. It does not introduce anything new, only changes some
private modifiers to public and adds some wrapper methods.
It all starts off with the Skin.getMacros() method that returns an Array object
containing all macros found in a skin.
Each macro item in turn has the following fields and methods:
* start - the character position where the macro starts (Number)
* end - the character position where the macro ends (Number)
* getName() - the macro name (String)
* getHandlerType() - the type of macro handler (Number)
* getNamedParams() - the list of named parameters (java.util.Map)
* getPositionalParams() - the list of positional parameters (java.util.List)
* hasNestedMacros() - true if the macro contains other macros (Boolean)
Would be nice to see the patch applied in a future version of Helma.
--
Configure bugmail:
http://dev.helma.org/bugs/userprefs.cgi?tab=email------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Helma-dev mailing list
Helma-dev@...
http://helma.org/mailman/listinfo/helma-dev