|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorc.ast.extended.declaration.Declaration
public abstract class Declaration
A unit of syntax that encapsulates some declaration. Declarations affect the environment, for example by adding new bindings, but do not typically do computation on their own. A declaration is scoped in the abstract syntax tree by a Declare object.
| Field Summary | |
|---|---|
protected SourceLocation |
location
|
| Constructor Summary | |
|---|---|
Declaration()
|
|
| Method Summary | |
|---|---|
abstract Expression |
bindto(Expression target)
|
SourceLocation |
getSourceLocation()
|
void |
setSourceLocation(SourceLocation location)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected SourceLocation location
| Constructor Detail |
|---|
public Declaration()
| Method Detail |
|---|
public abstract Expression bindto(Expression target)
throws CompilationException
CompilationExceptionpublic void setSourceLocation(SourceLocation location)
setSourceLocation in interface Locatablepublic SourceLocation getSourceLocation()
getSourceLocation in interface Located
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||