org.inxar.jenesis
Interface NewClass

All Superinterfaces:
Codeable, Expression
All Known Subinterfaces:
NewAnonymousClass

public interface NewClass
extends Expression

Expression subinterface for expressions which create new non-array objects.


Method Summary
 NewClass addArg(Expression e)
          Adds the given expression the list of arguments for this new invocation.
 Iterator getArgs()
          Gets the list of arguments for this instance creation as an iterator of Expression.
 java.lang.String getQualifier()
          Sets the qualifier for this instance creation.
 void setQualifier(java.lang.String s)
          Sets the qualifier for this instance creation.
 void setType(Type type)
          Sets the given type for this instance creation.
 
Methods inherited from interface org.inxar.jenesis.Expression
getType
 
Methods inherited from interface org.inxar.jenesis.Codeable
getComment, setComment, toCode, vm
 

Method Detail

setType

public void setType(Type type)
Sets the given type for this instance creation.

setQualifier

public void setQualifier(java.lang.String s)
Sets the qualifier for this instance creation. This is a feature needed only when expressing instance creation of a non-static inner class. Typically it will remain null.

getQualifier

public java.lang.String getQualifier()
Sets the qualifier for this instance creation.

getArgs

public Iterator getArgs()
Gets the list of arguments for this instance creation as an iterator of Expression.

addArg

public NewClass addArg(Expression e)
Adds the given expression the list of arguments for this new invocation.