public class ImportDeclaration extends Declaration
import
declaration.comment, name
byteOffset, line, nodeID, symbolTable
Constructor and Description |
---|
ImportDeclaration(Name n,
int line,
int byteOffset)
Full constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates a new object with the same primitive data, and recursively creates new member data
objects as well.
|
Type |
getType()
Returns
null , since this method should never be called on an object of this
class. |
void |
runPass(Pass pass)
Ensures that the correct
run() method is called for this type of node. |
void |
write(StringBuffer buffer)
Writes a string representation of this
ASTNode to the specified buffer. |
iterator
public ImportDeclaration(Name n, int line, int byteOffset)
n
- Reference to the object representing the import name.line
- The line on which the source code represented by this node is found.byteOffset
- The byte offset from the beginning of the source file at which the source
code represented by this node is found.public Type getType()
null
, since this method should never be called on an object of this
class.getType
in class Declaration
null
public Object clone()
public void runPass(Pass pass)
run()
method is called for this type of node.public void write(StringBuffer buffer)
ASTNode
to the specified buffer. The
representation written is parsable by the LBJava compiler, but not very readable.Copyright © 2016. All rights reserved.