org.fuin.srcgen4javassist
Class SgArgument

java.lang.Object
  extended by org.fuin.srcgen4javassist.SgVariable
      extended by org.fuin.srcgen4javassist.SgArgument

public final class SgArgument
extends SgVariable

Argument for a behavior (constructor or method).


Constructor Summary
SgArgument(SgBehavior owner, SgArgument argument)
          Constructor with argument.
SgArgument(SgBehavior owner, SgClass type, java.lang.String name)
          Constructor with type and name.
SgArgument(SgBehavior owner, java.lang.String modifiers, SgClass type, java.lang.String name)
          Constructor with type and name.
 
Method Summary
 SgBehavior getOwner()
          Returns the method or constructor this argument belongs to.
 java.lang.String toString()
          
 
Methods inherited from class org.fuin.srcgen4javassist.SgVariable
addAnnotation, addAnnotations, getAnnotations, getModifiers, getName, getType, hasAnnotation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SgArgument

public SgArgument(SgBehavior owner,
                  SgArgument argument)
Constructor with argument. Adds the new instance implicitly to the owner.

Parameters:
owner - The constructor or method the argument belongs to.
argument - Argument to copy type and name from - Cannot be null.

SgArgument

public SgArgument(SgBehavior owner,
                  SgClass type,
                  java.lang.String name)
Constructor with type and name. Adds the new instance implicitly to the owner.

Parameters:
owner - The constructor or method the argument belongs to.
type - Type - Cannot be null.
name - Name - Cannot be null and cannot be empty.

SgArgument

public SgArgument(SgBehavior owner,
                  java.lang.String modifiers,
                  SgClass type,
                  java.lang.String name)
Constructor with type and name. Adds the new instance implicitly to the owner.

Parameters:
owner - The constructor or method the argument belongs to.
modifiers - Modifiers (separated by space) - Cannot be null (but empty).
type - Type - Cannot be null.
name - Name - Cannot be null and cannot be empty.
Method Detail

getOwner

public final SgBehavior getOwner()
Returns the method or constructor this argument belongs to.

Returns:
Behaviour.

toString

public final java.lang.String toString()

Overrides:
toString in class java.lang.Object


Copyright © 2011 Future Invent Informationsmanagement GmbH. All Rights Reserved.