public abstract class Declaration extends ASTNode
import
and package
.Modifier and Type | Field and Description |
---|---|
String |
comment
(ø) The text of a Javadoc comment that may appear before the declaration.
|
Name |
name
(¬ø) Identifies what is being declared.
|
byteOffset, line, nodeID, symbolTable
Constructor and Description |
---|
Declaration(Name n,
int line,
int byteOffset)
Initializing constructor.
|
Declaration(String c,
Name n,
int line,
int byteOffset)
Full constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract Type |
getType()
Returns the type of the declaration.
|
ASTNodeIterator |
iterator()
Returns an iterator used to successively access the children of this node.
|
public String comment
public Name name
public Declaration(Name n, int line, int byteOffset)
n
- Reference to the name describing what is being declared.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 Declaration(String c, Name n, int line, int byteOffset)
c
- The text of a Javadoc comment.n
- Reference to the name describing what is being declared.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 abstract Type getType()
public ASTNodeIterator iterator()
Copyright © 2016. All rights reserved.