Package railo.transformer.bytecode

Examples of railo.transformer.bytecode.Literal


   */
  public String getHint() {
    if(hint==null) {
      Attribute attr = params.remove("hint");
      if(attr!=null) {
        Literal lit=(Literal) attr.getValue();
        hint=lit.getString().trim();
      }
      else {
        hint=DocCommentTransformer.unwrap(tmpHint.toString());
      }
    }
View Full Code Here


     * @param attrName
     * @return attribute value
     * @throws EvaluatorException
     */
  public static Boolean getAttributeBoolean(Tag tag,String attrName, Boolean defaultValue) {
    Literal lit=getAttributeLiteral(tag, attrName,null);
    if(lit==null) return defaultValue;
    return lit.getBoolean(defaultValue);
    }
View Full Code Here

     * @param attrName
     * @return attribute value
     * @throws EvaluatorException
     */
  public static String getAttributeString(Tag tag,String attrName, String defaultValue) {
    Literal lit=getAttributeLiteral(tag, attrName,null);
    if(lit==null) return defaultValue;
    return lit.getString();
    }
View Full Code Here

  }
 
  public static boolean registerKey(BytecodeContext bc,Expression name,boolean doUpperCase) throws BytecodeException {
   
    if(name instanceof Literal) {
      Literal l=(Literal) name;
     
      LitString ls = name instanceof LitString?(LitString)l:LitString.toLitString(l.getString());
      if(doUpperCase){
        ls=ls.duplicate();
        ls.upperCase();
      }
      String key=KeyConstants.getFieldName(ls.getString());
View Full Code Here

    boolean _abstract=false,_final=false;
    attr = removeAttribute("modifier");
    if(attr!=null) {
      Expression val = attr.getValue();
      if(val instanceof Literal) {
        Literal l=(Literal) val;
        String str = StringUtil.emptyIfNull(l.getString()).trim();
        if("abstract".equalsIgnoreCase(str))_abstract=true;
        else if("final".equalsIgnoreCase(str))_final=true;
      }
    }
View Full Code Here

      }
    }
    else if("modifier".equals(name))  {
      Expression val = attr.getValue();
      if(val instanceof Literal) {
        Literal l=(Literal) val;
        String str = StringUtil.emptyIfNull(l.getString()).trim();
        if("abstract".equalsIgnoreCase(str))_abstract=true;
        else if("final".equalsIgnoreCase(str))_final=true;
      }
    }
   
View Full Code Here

TOP

Related Classes of railo.transformer.bytecode.Literal

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.