railo.transformer.bytecode.statement.tag
Class TagBase

java.lang.Object
  extended by railo.transformer.bytecode.statement.StatementBase
      extended by railo.transformer.bytecode.statement.tag.TagBase
All Implemented Interfaces:
Statement, HasBody, Tag
Direct Known Subclasses:
TagBreak, TagComponent, TagContinue, TagFunction, TagIf, TagImport, TagInclude, TagJavaScript, TagLoop, TagOutput, TagParam, TagReThrow, TagReturn, TagScript, TagSet, TagSilent, TagSwitch, TagThread, TagTry, TagWhile

public class TagBase
extends StatementBase
implements Tag


Constructor Summary
TagBase(int startLine)
           
TagBase(int startLine, int endLine)
           
 
Method Summary
 void _writeOut(BytecodeContext bc)
          write out the stament to the adater
 void _writeOut(BytecodeContext bc, boolean doReuse)
           
 void addAttribute(Attribute attribute)
          adds a attribute to the tag
 void addMetaData(Attribute metadata)
           
 void addMissingAttribute(String name, String type)
           
 boolean containsAttribute(String name)
          check if tag has a tag with given name
 String getAppendix()
          appendix of the tag
 Attribute getAttribute(String name)
          returns a specified attribute from the tag
 Map getAttributes()
          return all Attributes as a map
 Body getBody()
          returns the body of the tag
 String getFullname()
          returns the fullname of the tag
 Map<String,Attribute> getMetaData()
           
 Map getMissingAttributes()
           
 TagLibTag getTagLibTag()
          return the TagLibTag to this tag
 boolean isScriptBase()
           
 Attribute removeAttribute(String name)
          returns a specified attribute from the tag
 void setAppendix(String appendix)
          sets the appendix of the tag
 void setBody(Body body)
          sets the body of the tag
 void setFullname(String fullname)
          sets the fullanem of the tag
 void setScriptBase(boolean scriptBase)
           
 void setTagLibTag(TagLibTag tagLibTag)
          sets the tagLibTag of this tag
 String toString()
           
 
Methods inherited from class railo.transformer.bytecode.statement.StatementBase
getDescendantCount, getEndLine, getLine, getParent, getStartLine, hasFlowController, setEndLine, setHasFlowController, setLine, setParent, setStartLine, writeOut
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface railo.transformer.bytecode.statement.tag.Tag
getEndLine, getStartLine, setEndLine, setStartLine
 
Methods inherited from interface railo.transformer.bytecode.Statement
getLine, getParent, hasFlowController, setHasFlowController, setParent, writeOut
 

Constructor Detail

TagBase

public TagBase(int startLine,
               int endLine)

TagBase

public TagBase(int startLine)
Method Detail

getAppendix

public String getAppendix()
Description copied from interface: Tag
appendix of the tag

Specified by:
getAppendix in interface Tag
Returns:
appendix
See Also:
Tag.getAppendix()

getAttributes

public Map getAttributes()
Description copied from interface: Tag
return all Attributes as a map

Specified by:
getAttributes in interface Tag
Returns:
attributes
See Also:
Tag.getAttributes()

getFullname

public String getFullname()
Description copied from interface: Tag
returns the fullname of the tag

Specified by:
getFullname in interface Tag
Returns:
fullname
See Also:
Tag.getFullname()

getTagLibTag

public TagLibTag getTagLibTag()
Description copied from interface: Tag
return the TagLibTag to this tag

Specified by:
getTagLibTag in interface Tag
Returns:
taglibtag
See Also:
Tag.getTagLibTag()

setAppendix

public void setAppendix(String appendix)
Description copied from interface: Tag
sets the appendix of the tag

Specified by:
setAppendix in interface Tag
See Also:
Tag.setAppendix(java.lang.String)

setFullname

public void setFullname(String fullname)
Description copied from interface: Tag
sets the fullanem of the tag

Specified by:
setFullname in interface Tag
See Also:
Tag.setFullname(java.lang.String)

setTagLibTag

public void setTagLibTag(TagLibTag tagLibTag)
Description copied from interface: Tag
sets the tagLibTag of this tag

Specified by:
setTagLibTag in interface Tag
See Also:
Tag.setTagLibTag(railo.transformer.library.tag.TagLibTag)

addAttribute

public void addAttribute(Attribute attribute)
Description copied from interface: Tag
adds a attribute to the tag

Specified by:
addAttribute in interface Tag
See Also:
Tag.addAttribute(railo.transformer.bytecode.statement.tag.Attribute)

containsAttribute

public boolean containsAttribute(String name)
Description copied from interface: Tag
check if tag has a tag with given name

Specified by:
containsAttribute in interface Tag
Returns:
contains attribute
See Also:
Tag.containsAttribute(java.lang.String)

getBody

public Body getBody()
Description copied from interface: Tag
returns the body of the tag

Specified by:
getBody in interface HasBody
Specified by:
getBody in interface Tag
Returns:
body of the tag
See Also:
Tag.getBody()

setBody

public void setBody(Body body)
Description copied from interface: Tag
sets the body of the tag

Specified by:
setBody in interface Tag
See Also:
Tag.setBody(railo.transformer.bytecode.Body)

_writeOut

public void _writeOut(BytecodeContext bc)
               throws BytecodeException
Description copied from class: StatementBase
write out the stament to the adater

Specified by:
_writeOut in class StatementBase
Throws:
BytecodeException
See Also:
railo.transformer.bytecode.statement.StatementBase#_writeOut(org.objectweb.asm.commons.GeneratorAdapter)

_writeOut

public void _writeOut(BytecodeContext bc,
                      boolean doReuse)
               throws BytecodeException
Throws:
BytecodeException

getAttribute

public Attribute getAttribute(String name)
Description copied from interface: Tag
returns a specified attribute from the tag

Specified by:
getAttribute in interface Tag
Returns:
See Also:
Tag.getAttribute(java.lang.String)

removeAttribute

public Attribute removeAttribute(String name)
Description copied from interface: Tag
returns a specified attribute from the tag

Specified by:
removeAttribute in interface Tag
Returns:
See Also:
Tag.removeAttribute(java.lang.String)

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()

isScriptBase

public boolean isScriptBase()
Specified by:
isScriptBase in interface Tag
Returns:
the scriptBase

setScriptBase

public void setScriptBase(boolean scriptBase)
Specified by:
setScriptBase in interface Tag
Parameters:
scriptBase - the scriptBase to set

addMissingAttribute

public void addMissingAttribute(String name,
                                String type)
Specified by:
addMissingAttribute in interface Tag
See Also:
Tag.addMissingAttribute(java.lang.String, java.lang.String)

getMissingAttributes

public Map getMissingAttributes()
Specified by:
getMissingAttributes in interface Tag
See Also:
Tag.getMissingAttributes()

addMetaData

public void addMetaData(Attribute metadata)
Specified by:
addMetaData in interface Tag

getMetaData

public Map<String,Attribute> getMetaData()
Specified by:
getMetaData in interface Tag


Copyright © 2012 Railo