public final class JPRAChecker extends Object implements JPRACheckerType
JPRACheckerType interface.| Modifier and Type | Method and Description |
|---|---|
StatementCommandType<IdentifierType,TType> |
checkCommandType(StatementCommandType<IdentifierType,Untyped> s)
Check a
:type command. |
void |
checkPackageBegin(StatementPackageBegin<IdentifierType,Untyped> s)
Check a package begin statement.
|
PackageContextType |
checkPackageEnd(StatementPackageEnd<IdentifierType,Untyped> s)
Complete the current package.
|
TypeDeclType<IdentifierType,TType> |
checkTypeDeclaration(TypeDeclType<IdentifierType,Untyped> decl)
Check a type declaration.
|
TypeExprType<IdentifierType,TType> |
checkTypeExpression(TypeExprType<IdentifierType,Untyped> expr)
Check a type expression.
|
static JPRACheckerType |
newChecker(GlobalContextType c,
JPRACheckerCapabilitiesType caps) |
public static JPRACheckerType newChecker(GlobalContextType c, JPRACheckerCapabilitiesType caps)
c - A global contextcaps - The capabilities that will be enforcedpublic void checkPackageBegin(StatementPackageBegin<IdentifierType,Untyped> s) throws JPRACompilerCheckerException
JPRACheckerTypecheckPackageBegin in interface JPRACheckerTypes - The statementJPRACompilerCheckerException - On resolution errorspublic PackageContextType checkPackageEnd(StatementPackageEnd<IdentifierType,Untyped> s) throws JPRACompilerCheckerException
JPRACheckerTypecheckPackageEnd in interface JPRACheckerTypes - The statementJPRACompilerCheckerException - On resolution errorspublic TypeDeclType<IdentifierType,TType> checkTypeDeclaration(TypeDeclType<IdentifierType,Untyped> decl) throws JPRACompilerCheckerException
JPRACheckerTypecheckTypeDeclaration in interface JPRACheckerTypedecl - The input declarationJPRACompilerCheckerException - On type errorspublic TypeExprType<IdentifierType,TType> checkTypeExpression(TypeExprType<IdentifierType,Untyped> expr) throws JPRACompilerCheckerException
JPRACheckerTypecheckTypeExpression in interface JPRACheckerTypeexpr - The input expressionJPRACompilerCheckerException - On type errorspublic StatementCommandType<IdentifierType,TType> checkCommandType(StatementCommandType<IdentifierType,Untyped> s) throws JPRACompilerCheckerException
JPRACheckerType:type command.checkCommandType in interface JPRACheckerTypes - The statementJPRACompilerCheckerException - On type errorsCopyright © 2016 <code@io7m.com> http://io7m.com