当前位置: 首页>>代码示例>>Java>>正文


Java VariableInfo.AT_END属性代码示例

本文整理汇总了Java中javax.servlet.jsp.tagext.VariableInfo.AT_END属性的典型用法代码示例。如果您正苦于以下问题:Java VariableInfo.AT_END属性的具体用法?Java VariableInfo.AT_END怎么用?Java VariableInfo.AT_END使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在javax.servlet.jsp.tagext.VariableInfo的用法示例。


在下文中一共展示了VariableInfo.AT_END属性的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getScriptingVars

public List<Object> getScriptingVars(int scope) {
    List<Object> vec = null;

    switch (scope) {
    case VariableInfo.AT_BEGIN:
        vec = this.atBeginScriptingVars;
        break;
    case VariableInfo.AT_END:
        vec = this.atEndScriptingVars;
        break;
    case VariableInfo.NESTED:
        vec = this.nestedScriptingVars;
        break;
    }

    return vec;
}
 
开发者ID:liaokailin,项目名称:tomcat7,代码行数:17,代码来源:Node.java

示例2: getScriptingVars

public Vector getScriptingVars(int scope) {
    Vector vec = null;

    switch (scope) {
    case VariableInfo.AT_BEGIN:
        vec = this.atBeginScriptingVars;
        break;
    case VariableInfo.AT_END:
        vec = this.atEndScriptingVars;
        break;
    case VariableInfo.NESTED:
        vec = this.nestedScriptingVars;
        break;
    }

    return vec;
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:17,代码来源:Node.java

示例3: getVariableInfo

/**
 * Return information about the scripting variables to be created.
 */
public VariableInfo[] getVariableInfo(TagData data) {
  // get the type
  String type = (String)data.getAttribute("type");

  // make it an object if none supplied
  if (type == null) {
    type = "java.lang.Object";
  }

  // return the infor about the deined object
  VariableInfo[] vinfo = new VariableInfo[1];
  vinfo[0] = new VariableInfo(data.getAttributeString("id"),
                              type, true, VariableInfo.AT_END );

  /* return the results */
  return vinfo;
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:20,代码来源:NestedDefineTei.java

示例4: getVariableInfo

/**
 * Return information about the scripting variables to be created.
 */
public VariableInfo[] getVariableInfo(TagData data) {

    String type = (String)data.getAttribute("type");
    Object name = data.getAttribute("name");
    Object value = data.getAttribute("value");
    if (type == null) {
        if ( (value!=null) ||  (name==null) )
            type = "java.lang.String";
        else 
            type = "java.lang.Object";
    }

    return new VariableInfo[] {
      new VariableInfo(data.getAttributeString("id"),
                       type,
                       true,
                       VariableInfo.AT_END )
    };

}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:23,代码来源:DefineTei.java

示例5: getVariableInfo

/**
   * Return information about the scripting variables to be created.
   */
  public VariableInfo[] getVariableInfo(TagData data) {

    String classname = data.getAttributeString("classname");
    if( classname == null )
      classname = "java.lang.Object";
    String id = data.getAttributeString("id");
    if( id == null )
      id = data.getAttributeString("name");

    return new VariableInfo[] {
    new VariableInfo(id,
                     classname,
                     true,
                     VariableInfo.AT_END)
};

  }
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:20,代码来源:UseAttributeTei.java

示例6: getScriptingVars

public List<Object> getScriptingVars(int scope) {
	List<Object> vec = null;

	switch (scope) {
	case VariableInfo.AT_BEGIN:
		vec = this.atBeginScriptingVars;
		break;
	case VariableInfo.AT_END:
		vec = this.atEndScriptingVars;
		break;
	case VariableInfo.NESTED:
		vec = this.nestedScriptingVars;
		break;
	}

	return vec;
}
 
开发者ID:how2j,项目名称:lazycat,代码行数:17,代码来源:Node.java

示例7: getVariableInfo

/**
 * Return information about the scripting variables to be created.
 */
public VariableInfo[] getVariableInfo(TagData data) {
    /* the id parameter */
    String id = data.getAttributeString("id");

    VariableInfo[] vi = null;

    if (id != null) {
        vi = new VariableInfo[1];
        vi[0] =
            new VariableInfo(id, "java.lang.String", true,
                VariableInfo.AT_END);
    } else {
        vi = new VariableInfo[0];
    }

    // job done
    return vi;
}
 
开发者ID:SonarSource,项目名称:sonar-scanner-maven,代码行数:21,代码来源:NestedWriteNestingTei.java

示例8: getVariableInfo

/**
 * Return information about the scripting variables to be created.
 */
public VariableInfo[] getVariableInfo(TagData data) {
    // get the type
    String type = (String) data.getAttribute("type");

    // make it an object if none supplied
    if (type == null) {
        type = "java.lang.Object";
    }

    // return the infor about the deined object
    VariableInfo[] vinfo = new VariableInfo[1];

    vinfo[0] =
        new VariableInfo(data.getAttributeString("id"), type, true,
            VariableInfo.AT_END);

    /* return the results */
    return vinfo;
}
 
开发者ID:SonarSource,项目名称:sonar-scanner-maven,代码行数:22,代码来源:NestedDefineTei.java

示例9: getVariableInfo

/**
 * Return information about the scripting variables to be created.
 */
public VariableInfo[] getVariableInfo(TagData data) {
    String type = (String) data.getAttribute("type");
    Object name = data.getAttribute("name");
    Object value = data.getAttribute("value");

    if (type == null) {
        if ((value != null) || (name == null)) {
            type = "java.lang.String";
        } else {
            type = "java.lang.Object";
        }
    }

    return new VariableInfo[] {
        new VariableInfo(data.getAttributeString("id"), type, true,
            VariableInfo.AT_END)
    };
}
 
开发者ID:SonarSource,项目名称:sonar-scanner-maven,代码行数:21,代码来源:DefineTei.java

示例10: copyTagToPageScope

/**
 * Copies the variables of the given scope from the virtual page scope of
 * this JSP context wrapper to the page scope of the invoking JSP context.
 * 
 * @param scope
 *            variable scope (one of NESTED, AT_BEGIN, or AT_END)
 */
private void copyTagToPageScope(int scope) {
    Iterator<String> iter = null;

    switch (scope) {
    case VariableInfo.NESTED:
        if (nestedVars != null) {
            iter = nestedVars.iterator();
        }
        break;
    case VariableInfo.AT_BEGIN:
        if (atBeginVars != null) {
            iter = atBeginVars.iterator();
        }
        break;
    case VariableInfo.AT_END:
        if (atEndVars != null) {
            iter = atEndVars.iterator();
        }
        break;
    }

    while ((iter != null) && iter.hasNext()) {
        String varName = iter.next();
        Object obj = getAttribute(varName);
        varName = findAlias(varName);
        if (obj != null) {
            invokingJspCtxt.setAttribute(varName, obj);
        } else {
            invokingJspCtxt.removeAttribute(varName, PAGE_SCOPE);
        }
    }
}
 
开发者ID:liaokailin,项目名称:tomcat7,代码行数:39,代码来源:JspContextWrapper.java

示例11: setScriptingVars

public void setScriptingVars(List<Object> vec, int scope) {
    switch (scope) {
    case VariableInfo.AT_BEGIN:
        this.atBeginScriptingVars = vec;
        break;
    case VariableInfo.AT_END:
        this.atEndScriptingVars = vec;
        break;
    case VariableInfo.NESTED:
        this.nestedScriptingVars = vec;
        break;
    }
}
 
开发者ID:liaokailin,项目名称:tomcat7,代码行数:13,代码来源:Node.java

示例12: getVariableInfo

@Override
public VariableInfo[] getVariableInfo(TagData data) {
    return new VariableInfo[] {
            new VariableInfo("now", Bean.class.getCanonicalName(),
                    true, VariableInfo.AT_END)
        };
}
 
开发者ID:liaokailin,项目名称:tomcat7,代码行数:7,代码来源:TestGenerator.java

示例13: getVariableInfo

/**
 * Return information about the scripting variables to be created.
 */
@Override
public VariableInfo[] getVariableInfo(TagData data) {
    return new VariableInfo[] {
        new VariableInfo("Test", "java.lang.String", true,
            VariableInfo.AT_END)
    };
}
 
开发者ID:liaokailin,项目名称:tomcat7,代码行数:10,代码来源:TestScriptingVariabler.java

示例14: setScriptingVars

public void setScriptingVars(List<Object> vec, int scope) {
	switch (scope) {
	case VariableInfo.AT_BEGIN:
		this.atBeginScriptingVars = vec;
		break;
	case VariableInfo.AT_END:
		this.atEndScriptingVars = vec;
		break;
	case VariableInfo.NESTED:
		this.nestedScriptingVars = vec;
		break;
	}
}
 
开发者ID:how2j,项目名称:lazycat,代码行数:13,代码来源:Node.java

示例15: setScriptingVars

public void setScriptingVars(Vector vec, int scope) {
    switch (scope) {
    case VariableInfo.AT_BEGIN:
        this.atBeginScriptingVars = vec;
        break;
    case VariableInfo.AT_END:
        this.atEndScriptingVars = vec;
        break;
    case VariableInfo.NESTED:
        this.nestedScriptingVars = vec;
        break;
    }
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:13,代码来源:Node.java


注:本文中的javax.servlet.jsp.tagext.VariableInfo.AT_END属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。