|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object orc.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 |
Methods inherited from interface orc.ast.extended.ASTNode |
---|
accept |
Field Detail |
---|
protected SourceLocation location
Constructor Detail |
---|
public Declaration()
Method Detail |
---|
public abstract Expression bindto(Expression target) throws CompilationException
CompilationException
public void setSourceLocation(SourceLocation location)
setSourceLocation
in interface Locatable
public SourceLocation getSourceLocation()
getSourceLocation
in interface ASTNode
getSourceLocation
in interface Located
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |