orc.ast.extended.declaration.type
Class TypeDeclaration

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

public class TypeDeclaration
extends Declaration

Declaration of an external type. The type is specified as a fully qualified Java class name. The class must be a subclass of orc.type.Type. The declaration binds an instance of the class to the given type name.

Author:
dkitchin

Field Summary
 java.lang.String classname
           
 java.lang.String varname
           
 
Fields inherited from class orc.ast.extended.declaration.Declaration
location
 
Constructor Summary
TypeDeclaration(java.lang.String varname, java.lang.String classname)
           
 
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

TypeDeclaration

public TypeDeclaration(java.lang.String varname,
                       java.lang.String classname)
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)