public final class ComponentUtil extends Object
Constructor and Description |
---|
ComponentUtil() |
Modifier and Type | Method and Description |
---|---|
static Component |
getActiveComponent(PageContext pc,
Component current) |
static String |
getClassname(Component component,
ASMProperty[] props) |
static Class |
getClientComponentPropertiesClass(PageContext pc,
String className,
ASMProperty[] properties,
Class extendsClass) |
static long |
getCompileTime(PageContext pc,
PageSource ps) |
static long |
getCompileTime(PageContext pc,
PageSource ps,
long defaultValue) |
static Class |
getComponentJavaAccess(PageContext pc,
Component component,
RefBoolean isNew,
boolean create,
boolean writeLog,
boolean suppressWSbeforeArg,
boolean output)
generate a ComponentJavaAccess (CJA) class from a component
a CJA is a dynamic genarted java class that has all method defined inside a component as java methods.
|
static Class |
getComponentPropertiesClass(Config config,
String className,
ASMProperty[] properties,
Class extendsClass) |
static Class |
getComponentPropertiesClass(PageContext pc,
Component component) |
static Struct |
getMetaData(PageContext pc,
UDFPropertiesImpl udf) |
static Page |
getPage(PageContext pc,
PageSource ps) |
static PageSource |
getPageSource(Component cfc) |
static Struct |
getPropertiesAsStruct(Component c,
boolean onlyPersistent) |
static Class |
getStructPropertiesClass(PageContext pc,
Struct sct,
PhysicalClassLoader cl) |
static String |
md5(Component c) |
static String |
md5(ComponentSpecificAccess cw) |
static ExpressionException |
notFunction(Component c,
Collection.Key key,
Object member,
int access) |
static Component |
toComponent(Object obj) |
static int |
toIntAccess(String access)
cast a strong access definition to the int type
|
static int |
toIntAccess(String access,
int defaultValue) |
static String |
toStringAccess(int access)
cast int type to string type
|
static String |
toStringAccess(int access,
String defaultValue) |
public ComponentUtil()
public static Class getComponentJavaAccess(PageContext pc, Component component, RefBoolean isNew, boolean create, boolean writeLog, boolean suppressWSbeforeArg, boolean output) throws PageException
component
- isNew
- PageException
public static String getClassname(Component component, ASMProperty[] props)
public static Class getClientComponentPropertiesClass(PageContext pc, String className, ASMProperty[] properties, Class extendsClass) throws PageException
PageException
public static Class getComponentPropertiesClass(Config config, String className, ASMProperty[] properties, Class extendsClass) throws PageException
PageException
public static Class getComponentPropertiesClass(PageContext pc, Component component) throws PageException
PageException
public static Class getStructPropertiesClass(PageContext pc, Struct sct, PhysicalClassLoader cl) throws PageException
PageException
public static String md5(Component c) throws IOException
IOException
public static String md5(ComponentSpecificAccess cw) throws IOException
IOException
public static int toIntAccess(String access) throws ExpressionException
access
- access typeExpressionException
public static int toIntAccess(String access, int defaultValue)
public static String toStringAccess(int access) throws ExpressionException
access
- ExpressionException
public static String toStringAccess(int access, String defaultValue)
public static ExpressionException notFunction(Component c, Collection.Key key, Object member, int access)
public static Component toComponent(Object obj) throws ExpressionException
ExpressionException
public static PageSource getPageSource(Component cfc)
public static Component getActiveComponent(PageContext pc, Component current)
public static long getCompileTime(PageContext pc, PageSource ps, long defaultValue)
public static long getCompileTime(PageContext pc, PageSource ps) throws PageException
PageException
public static Page getPage(PageContext pc, PageSource ps) throws PageException
PageException
public static Struct getPropertiesAsStruct(Component c, boolean onlyPersistent)
public static Struct getMetaData(PageContext pc, UDFPropertiesImpl udf) throws PageException
PageException
Copyright © 2015 Lucee