當前位置: 首頁>>代碼示例>>Java>>正文


Java Component.ACCESS_PUBLIC屬性代碼示例

本文整理匯總了Java中lucee.runtime.Component.ACCESS_PUBLIC屬性的典型用法代碼示例。如果您正苦於以下問題:Java Component.ACCESS_PUBLIC屬性的具體用法?Java Component.ACCESS_PUBLIC怎麽用?Java Component.ACCESS_PUBLIC使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在lucee.runtime.Component的用法示例。


在下文中一共展示了Component.ACCESS_PUBLIC屬性的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: BIF

public BIF(PageContext pc,String name) throws ApplicationException{
	super(Component.ACCESS_PUBLIC);
	ci=(ConfigImpl) pc.getConfig();
	FunctionLib fl = ci.getCombinedFLDs(pc.getCurrentTemplateDialect());
	flf = fl.getFunction(name);
	
	// BIF not found
	if(flf==null) {
		Key[] keys = CollectionUtil.toKeys(fl.getFunctions().keySet());
		throw new ApplicationException(ExceptionUtil.similarKeyMessage(keys, name, "build in function", "build in functions",null, false));
	}
	try {
		this.id=Hash.md5(name);
	}
	catch (NoSuchAlgorithmException e) {
		this.id=name;
	}
}
 
開發者ID:lucee,項目名稱:Lucee,代碼行數:18,代碼來源:BIF.java

示例2: init

@Override
public void init(Map arguments){
	forceCFCLower=Caster.toBooleanValue(arguments.get("force-cfc-lowercase"),false);
	forceQueryLower=Caster.toBooleanValue(arguments.get("force-query-lowercase"),false);
	forceStructLower=Caster.toBooleanValue(arguments.get("force-struct-lowercase"),false);
	// method access level
	String str=Caster.toString(arguments.get("method-access-level"),"remote");
	if("private".equalsIgnoreCase(str))methodAccessLevel=Component.ACCESS_PRIVATE;
	else if("package".equalsIgnoreCase(str))methodAccessLevel=Component.ACCESS_PACKAGE;
	else if("public".equalsIgnoreCase(str))methodAccessLevel=Component.ACCESS_PUBLIC;
	else methodAccessLevel=Component.ACCESS_REMOTE;
	
}
 
開發者ID:lucee,項目名稱:Lucee4,代碼行數:13,代碼來源:ClassicAMFCaster.java

示例3: UDFGSProperty

public UDFGSProperty(ComponentImpl component,String name,FunctionArgument[] arguments,short rtnType,String rtnFormat) {
	super(Component.ACCESS_PUBLIC);
	properties=new UDFPropertiesImpl(
			component.getPageSource(),
			arguments,
			-1,
			name,
			rtnType,
			rtnFormat,
			false,
			Component.ACCESS_PUBLIC,
			true,
			"",
			"",
			"",
			Boolean.FALSE,
			Boolean.FALSE,
			null,
			null,
			null
			
	);
			
	this.name=name;
	this.arguments=arguments;
	this.component=component;
}
 
開發者ID:lucee,項目名稱:Lucee4,代碼行數:27,代碼來源:UDFGSProperty.java

示例4: BIF

public BIF(Config config,String name) throws ApplicationException{
	super(Component.ACCESS_PUBLIC);
	ci=(ConfigImpl) config;
	FunctionLib fl = ci.getCombinedFLDs();
	flf = fl.getFunction(name);
	
	// BIF not fuound
	if(flf==null) {
		Key[] keys = CollectionUtil.toKeys(fl.getFunctions().keySet());
		throw new ApplicationException(ExceptionUtil.similarKeyMessage(keys, name, "build in function", "build in functions", false));
	}
}
 
開發者ID:lucee,項目名稱:Lucee4,代碼行數:12,代碼來源:BIF.java

示例5: toIntAccess

/**
    * cast a strong access definition to the int type
    * @param access access type
    * @return int access type
    * @throws ExpressionException
    */
public static int toIntAccess(String access) throws ExpressionException {
       access=StringUtil.toLowerCase(access.trim());
       if(access.equals("package"))return Component.ACCESS_PACKAGE;
       else if(access.equals("private"))return Component.ACCESS_PRIVATE;
       else if(access.equals("public"))return Component.ACCESS_PUBLIC;
       else if(access.equals("remote"))return Component.ACCESS_REMOTE;
       throw new ExpressionException("invalid access type ["+access+"], access types are remote, public, package, private");
       
   }
 
開發者ID:lucee,項目名稱:Lucee4,代碼行數:15,代碼來源:ComponentUtil.java

示例6: toStringAccess

public static String toStringAccess(int access,String defaultValue)  {
    switch(access) {
        case Component.ACCESS_PACKAGE:      return "package";
        case Component.ACCESS_PRIVATE:      return "private";
        case Component.ACCESS_PUBLIC:       return "public";
        case Component.ACCESS_REMOTE:       return "remote";
    }
    return defaultValue;
}
 
開發者ID:lucee,項目名稱:Lucee4,代碼行數:9,代碼來源:ComponentUtil.java

示例7: UDFGSProperty

public UDFGSProperty(Component component,String name,FunctionArgument[] arguments,short rtnType) {
	super(Component.ACCESS_PUBLIC);
	properties=UDFProperties(null,
			component.getPageSource(),
			arguments,
			name,
			rtnType
	);
	
	this.name=name;
	this.arguments=arguments;
	this.component=component;
}
 
開發者ID:lucee,項目名稱:Lucee,代碼行數:13,代碼來源:UDFGSProperty.java

示例8: toIntAccess

/**
    * cast a strong access definition to the int type
    * @param access access type
    * @return int access type
    * @throws ExpressionException
    */
public static int toIntAccess(String access) throws ApplicationException {
       access=StringUtil.toLowerCase(access.trim());
       if(access.equals("package"))return Component.ACCESS_PACKAGE;
       else if(access.equals("private"))return Component.ACCESS_PRIVATE;
       else if(access.equals("public"))return Component.ACCESS_PUBLIC;
       else if(access.equals("remote"))return Component.ACCESS_REMOTE;
       throw new ApplicationException("invalid access type ["+access+"], access types are remote, public, package, private");
       
   }
 
開發者ID:lucee,項目名稱:Lucee,代碼行數:15,代碼來源:ComponentUtil.java

示例9: getAccess

@Override
public int getAccess() {
	return Component.ACCESS_PUBLIC;
}
 
開發者ID:lucee,項目名稱:Lucee,代碼行數:4,代碼來源:UDFPropertiesLight.java


注:本文中的lucee.runtime.Component.ACCESS_PUBLIC屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。