orc.ast.extended.declaration
Class ClassDeclaration

java.lang.Object
  extended by orc.ast.extended.declaration.Declaration
      extended by orc.ast.extended.declaration.ClassDeclaration
All Implemented Interfaces:
ASTNode, Locatable, Located

public class ClassDeclaration
extends Declaration

Declaration of a class proxy. The class is given as a fully qualified Java class name. It can be any Java class. The declaration binds a proxy for this class to the given name. Calls to the proxy behave as calls to the class's constructor.

Author:
dkitchin

Field Summary
 java.lang.String classname
           
 java.lang.String varname
           
 
Fields inherited from class orc.ast.extended.declaration.Declaration
location
 
Constructor Summary
ClassDeclaration(java.lang.String v, java.lang.String c)
           
 
Method Summary
<E> E
accept(Visitor<E> visitor)
           
 Expression bindto(Expression target)
           
 java.lang.String toString()
           
 
Methods inherited from class orc.ast.extended.declaration.Declaration
getSourceLocation, setSourceLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

varname

public java.lang.String varname

classname

public java.lang.String classname
Constructor Detail

ClassDeclaration

public ClassDeclaration(java.lang.String v,
                        java.lang.String c)
Method Detail

bindto

public Expression bindto(Expression target)
Specified by:
bindto in class Declaration

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

accept

public <E> E accept(Visitor<E> visitor)