xtc.parser
Class ModuleImport

java.lang.Object
  extended by xtc.tree.Node
      extended by xtc.parser.ModuleDependency
          extended by xtc.parser.ModuleImport
All Implemented Interfaces:
java.lang.Iterable<java.lang.Object>, Locatable

public class ModuleImport
extends ModuleDependency

A grammar module import.

Version:
$Revision: 1.13 $
Author:
Robert Grimm

Field Summary
 
Fields inherited from class xtc.parser.ModuleDependency
arguments, module, target
 
Constructor Summary
ModuleImport(ModuleName module)
          Create a new module import.
ModuleImport(ModuleName module, ModuleList arguments, ModuleName target)
          Create a new module import.
 
Method Summary
 boolean isImport()
          Determine whether this dependency is a module import.
 
Methods inherited from class xtc.parser.ModuleDependency
equals, hashCode, isConsistentWith, isInstantiation, isModification, rename, visibleName
 
Methods inherited from class xtc.tree.Node
add, add, addAll, addAll, addAll, addAll, addAllTo, addNode, contains, get, getBoolean, getBooleanProperty, getGeneric, getList, getLocation, getName, getNode, getProperty, getString, getStringProperty, getTokenText, hasLocation, hasName, hasProperty, hasTraversal, hasVariable, indexOf, isAnnotation, isEmpty, isGeneric, isList, isToken, iterator, lastIndexOf, properties, remove, removeProperty, set, setLocation, setLocation, setProperty, size, strip, toAnnotation, toList, toString, toToken, write
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ModuleImport

public ModuleImport(ModuleName module)
Create a new module import.

Parameters:
module - The module name.

ModuleImport

public ModuleImport(ModuleName module,
                    ModuleList arguments,
                    ModuleName target)
Create a new module import.

Parameters:
module - The module name.
arguments - The arguments.
target - The target module name.
Method Detail

isImport

public boolean isImport()
Description copied from class: ModuleDependency
Determine whether this dependency is a module import.

Overrides:
isImport in class ModuleDependency
Returns:
true if this dependency is an import.


Copyright © 2012. All Rights Reserved.