|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.teatrove.tea.parsetree.Node
org.teatrove.tea.parsetree.Directive
org.teatrove.tea.parsetree.ImportDirective
public class ImportDirective
An import directive allows for a shorthand name qualifier for type names
| Constructor Summary | |
|---|---|
ImportDirective(SourceInfo info,
String name)
Used for variable declarations. |
|
| Method Summary | |
|---|---|
Object |
accept(NodeVisitor visitor)
Every subclass of Node must override this method with the following: return visitor.visit(this). |
Object |
clone()
Returns a clone of this Node and all its children. |
boolean |
equals(Object other)
ImportDirectives are tested for equality only by their name and type. |
String |
getName()
|
int |
hashCode()
|
void |
setName(String name)
|
| Methods inherited from class org.teatrove.tea.parsetree.Node |
|---|
getSourceInfo, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ImportDirective(SourceInfo info,
String name)
| Method Detail |
|---|
public Object accept(NodeVisitor visitor)
Nodereturn visitor.visit(this).
accept in class Directivevisitor - A visitor of this Node
NodeVisitorpublic String getName()
public void setName(String name)
public int hashCode()
hashCode in class Objectpublic boolean equals(Object other)
equals in class Objectpublic Object clone()
Node
clone in class Node
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||