railo.transformer.bytecode.statement.tag
Interface Tag

All Superinterfaces:
HasBody, Statement
All Known Implementing Classes:
TagBase, TagBreak, TagComponent, TagContinue, TagFunction, TagIf, TagImport, TagInclude, TagJavaScript, TagLoop, TagOutput, TagParam, TagReThrow, TagReturn, TagScript, TagSet, TagSilent, TagSwitch, TagThread, TagTry, TagWhile

public interface Tag
extends Statement, HasBody


Method Summary
 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
 int getEndLine()
           
 String getFullname()
          returns the fullname of the tag
 Map<String,Attribute> getMetaData()
           
 Map getMissingAttributes()
           
 int getStartLine()
           
 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 setEndLine(int endLine)
          sets the line value.
 void setFullname(String fullname)
          sets the fullanem of the tag
 void setScriptBase(boolean scriptBase)
           
 void setStartLine(int startLine)
          sets the line value.
 void setTagLibTag(TagLibTag tagLibTag)
          sets the tagLibTag of this tag
 
Methods inherited from interface railo.transformer.bytecode.Statement
getLine, getParent, hasFlowController, setHasFlowController, setParent, writeOut
 

Method Detail

getAppendix

String getAppendix()
appendix of the tag

Returns:
appendix

getAttributes

Map getAttributes()
return all Attributes as a map

Returns:
attributes

getFullname

String getFullname()
returns the fullname of the tag

Returns:
fullname

getTagLibTag

TagLibTag getTagLibTag()
return the TagLibTag to this tag

Returns:
taglibtag

setAppendix

void setAppendix(String appendix)
sets the appendix of the tag

Parameters:
appendix -

setFullname

void setFullname(String fullname)
sets the fullanem of the tag

Parameters:
fullname -

setTagLibTag

void setTagLibTag(TagLibTag tagLibTag)
sets the tagLibTag of this tag

Parameters:
tagLibTag -

addAttribute

void addAttribute(Attribute attribute)
adds a attribute to the tag

Parameters:
attribute -

containsAttribute

boolean containsAttribute(String name)
check if tag has a tag with given name

Parameters:
name -
Returns:
contains attribute

getBody

Body getBody()
returns the body of the tag

Specified by:
getBody in interface HasBody
Returns:
body of the tag

setBody

void setBody(Body body)
sets the body of the tag

Parameters:
body -

getAttribute

Attribute getAttribute(String name)
returns a specified attribute from the tag

Parameters:
name -
Returns:

removeAttribute

Attribute removeAttribute(String name)
returns a specified attribute from the tag

Parameters:
name -
Returns:

addMissingAttribute

void addMissingAttribute(String name,
                         String type)

getMissingAttributes

Map getMissingAttributes()

getStartLine

int getStartLine()
Returns:
the startLine

getEndLine

int getEndLine()
Returns:
the endLine

setStartLine

void setStartLine(int startLine)
sets the line value.

Parameters:
line - The line to set.

setEndLine

void setEndLine(int endLine)
sets the line value.

Parameters:
line - The line to set.

setScriptBase

void setScriptBase(boolean scriptBase)

isScriptBase

boolean isScriptBase()

addMetaData

void addMetaData(Attribute metadata)

getMetaData

Map<String,Attribute> getMetaData()


Copyright © 2012 Railo