org.millscript.millscript.expr
Class PackageExpr

java.lang.Object
  extended by org.millscript.millscript.expr.Expr<Action>
      extended by org.millscript.millscript.expr.DirectiveExpr
          extended by org.millscript.millscript.expr.PackageExpr

public final class PackageExpr
extends DirectiveExpr

This class implements a package expression.

See Also:
PackageSyntax

Constructor Summary
PackageExpr(java.lang.String b)
          Creates a new package expression for the specified name.
 
Method Summary
 java.lang.String getFullName()
          Returns the full package name for this expression.
 void resolve(CompilerState state)
          Resolves any NameExpr in the tree so that they refer to the correct ident.
 
Methods inherited from class org.millscript.millscript.expr.DirectiveExpr
compileIt
 
Methods inherited from class org.millscript.millscript.expr.Expr
arity, compile, isIntegerExpr, resolveList, setLineNumber, setOrigin, show, show
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PackageExpr

public PackageExpr(java.lang.String b)
Creates a new package expression for the specified name.

Parameters:
b - a String describing the package name
Method Detail

getFullName

public java.lang.String getFullName()
Returns the full package name for this expression.

Returns:
this expressions full package name

resolve

public void resolve(CompilerState state)
Description copied from class: Expr
Resolves any NameExpr in the tree so that they refer to the correct ident. e.g. This method is responsible for ensuring that references to a function argument in the body of a function actually refer to the correct value.

Specified by:
resolve in class Expr<Action>
Parameters:
state - the compiler state we are resolving in
See Also:
Expr.resolve(org.millscript.millscript.vm.CompilerState)


Copyright © 2001-2007 Open World Ltd. All Rights Reserved.