org.objectweb.kilim.description
Class TpConstructor

java.lang.Object
  extended byorg.objectweb.kilim.description.TemplateElementImpl
      extended byorg.objectweb.kilim.description.InlinedElement
          extended byorg.objectweb.kilim.description.TpMethod
              extended byorg.objectweb.kilim.description.TpConstructor
All Implemented Interfaces:
BasicElement, java.lang.Cloneable, TemplateElement

public class TpConstructor
extends TpMethod

Author:
horn

Field Summary
 
Fields inherited from class org.objectweb.kilim.description.TpMethod
 
Fields inherited from class org.objectweb.kilim.description.InlinedElement
 
Fields inherited from class org.objectweb.kilim.description.TemplateElementImpl
 
Constructor Summary
TpConstructor(BasicElement aSupport, boolean isP, boolean isT, TemplateDescription aTemplate)
          A public constructor for "constructor" descriptions.
TpConstructor(BasicElement aSupport, TemplateDescription aTemplate)
          A public constructor for "constructor" descriptions.
 
Method Summary
 int getKind()
          returns the element kind.
 void isStatic(boolean jStatic)
           
 
Methods inherited from class org.objectweb.kilim.description.TpMethod
addParameter, getMethodName, getParameter, getParameterNumber, getParameters, getSupport, insertParameter, isStatic, removeParameter, setMethodName, setSupport
 
Methods inherited from class org.objectweb.kilim.description.InlinedElement
getLocalName, getStatus, isEventSource, performsAction, providesValue, setLocalName, setStatus
 
Methods inherited from class org.objectweb.kilim.description.TemplateElementImpl
clone, getContainingTemplate, getTemplateDefHierarchy, setContainingTemplate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.objectweb.kilim.description.TemplateElement
clone, getContainingTemplate, getTemplateDefHierarchy, setContainingTemplate
 

Constructor Detail

TpConstructor

public TpConstructor(BasicElement aSupport,
                     boolean isP,
                     boolean isT,
                     TemplateDescription aTemplate)
              throws KilimException
A public constructor for "constructor" descriptions.

Parameters:
aSupport - : the support of the constructor. It is a ClassSource
isP - : is true if the constructor can be used as a provider (is generally true).
isT - : is true if the constructor can be used as a transformer (through its side effects).
aTemplate - : the template in which the constructor is declared.
Throws:
KilimException - : generated if aSupport or aTemplate is null.

TpConstructor

public TpConstructor(BasicElement aSupport,
                     TemplateDescription aTemplate)
              throws KilimException
A public constructor for "constructor" descriptions. It is strictly equivalent to TpConstructor(aSupport, true, false, aTemplate);

Parameters:
aSupport - : the support of the constructor. It is a ClassSource
aTemplate - : the template in which the constructor is declared.
Throws:
KilimException - : generated if aSupport or aTemplate is null.
Method Detail

isStatic

public void isStatic(boolean jStatic)
              throws KilimException
Overrides:
isStatic in class TpMethod
Throws:
KilimException
See Also:
org.objectweb.kilim.description.MethodSourceImpl#isStatic(boolean)

getKind

public int getKind()
Description copied from interface: BasicElement
returns the element kind.

Specified by:
getKind in interface BasicElement
Overrides:
getKind in class TpMethod
See Also:
BasicElement.getKind()