|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.ksu.cis.projects.bogor.ast.ASTVisitor edu.ksu.cis.projects.bogor.ast.checker.LegalInitialValueChecker
public final class LegalInitialValueChecker
Type description here.
Method Summary | |
---|---|
static boolean |
isConst(Exp e,
SymbolTable st)
Determine if the expression is a legal initial value for a variable. |
protected void |
visitApplyExp(ApplyExp node)
|
protected void |
visitArrayAccessExp(ArrayAccessExp node)
|
protected void |
visitAtomicExp(AtomicExp node)
|
protected void |
visitBinaryExp(BinaryExp node)
|
protected void |
visitCastExp(CastExp node)
|
protected void |
visitConditionalExp(ConditionalExp node)
|
protected void |
visitExtExp(ExtExp node)
|
protected void |
visitFieldAccessExp(FieldAccessExp node)
|
protected void |
visitIdExp(IdExp node)
|
protected void |
visitInstanceofExp(InstanceofExp node)
|
protected void |
visitInvokeExp(InvokeExp node)
|
protected void |
visitKindofExp(KindofExp node)
|
protected void |
visitLetExp(LetExp node)
|
protected void |
visitLiteralExp(LiteralExp node)
|
protected void |
visitLockTestExp(LockTestExp node)
|
protected void |
visitNewArrayExp(NewArrayExp node)
|
protected void |
visitNewLockExp(NewLockExp node)
|
protected void |
visitNewRecordExp(NewRecordExp node)
|
protected void |
visitParenExp(ParenExp node)
|
protected void |
visitStartThreadExp(StartThreadExp node)
|
protected void |
visitThreadTestExp(ThreadTestExp node)
|
protected void |
visitUnaryExp(UnaryExp node)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean isConst(Exp e, SymbolTable st)
Determine if the expression is a legal initial value for a variable.
Numeric and string literals, const references, enumerated type elements, and the null object literal are allowed.
protected void visitApplyExp(ApplyExp node)
visitApplyExp
in class ASTVisitor
protected void visitArrayAccessExp(ArrayAccessExp node)
visitArrayAccessExp
in class ASTVisitor
protected void visitAtomicExp(AtomicExp node)
visitAtomicExp
in class ASTVisitor
protected void visitBinaryExp(BinaryExp node)
visitBinaryExp
in class ASTVisitor
protected void visitCastExp(CastExp node)
visitCastExp
in class ASTVisitor
protected void visitConditionalExp(ConditionalExp node)
visitConditionalExp
in class ASTVisitor
protected void visitExtExp(ExtExp node)
visitExtExp
in class ASTVisitor
protected void visitFieldAccessExp(FieldAccessExp node)
visitFieldAccessExp
in class ASTVisitor
protected void visitIdExp(IdExp node)
visitIdExp
in class ASTVisitor
protected void visitInstanceofExp(InstanceofExp node)
visitInstanceofExp
in class ASTVisitor
protected void visitInvokeExp(InvokeExp node)
visitInvokeExp
in class ASTVisitor
protected void visitKindofExp(KindofExp node)
visitKindofExp
in class ASTVisitor
protected void visitLetExp(LetExp node)
visitLetExp
in class ASTVisitor
protected void visitLiteralExp(LiteralExp node)
visitLiteralExp
in class ASTVisitor
protected void visitLockTestExp(LockTestExp node)
visitLockTestExp
in class ASTVisitor
protected void visitNewArrayExp(NewArrayExp node)
visitNewArrayExp
in class ASTVisitor
protected void visitNewLockExp(NewLockExp node)
visitNewLockExp
in class ASTVisitor
protected void visitNewRecordExp(NewRecordExp node)
visitNewRecordExp
in class ASTVisitor
protected void visitParenExp(ParenExp node)
visitParenExp
in class ASTVisitor
protected void visitStartThreadExp(StartThreadExp node)
visitStartThreadExp
in class ASTVisitor
protected void visitThreadTestExp(ThreadTestExp node)
visitThreadTestExp
in class ASTVisitor
protected void visitUnaryExp(UnaryExp node)
visitUnaryExp
in class ASTVisitor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |