| Constructor and description |
|---|
ProcessingContextInformation(ClassNode classNode, SourceUnit sourceUnit, ReaderSource source)Creates the processing context for one class and the contract model derived from it. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
addError(String msg, ASTNode expr)Adds a syntax error tied to the given AST node while allowing compilation to continue collecting errors. |
|
public Contract |
contract()Returns the mutable contract domain model associated with the current class. |
|
public Object |
get(String key)Returns an auxiliary value previously stored in the per-class processing context. |
|
public boolean |
isClassInvariantsEnabled()Indicates whether class invariant processing is currently enabled. |
|
public boolean |
isConstructorAssertionsEnabled()Indicates whether constructor assertions are currently enabled. |
|
public boolean |
isPostconditionsEnabled()Indicates whether postcondition processing is currently enabled. |
|
public boolean |
isPreconditionsEnabled()Indicates whether precondition processing is currently enabled. |
|
public void |
put(String key, Object value)Stores an auxiliary value in the per-class processing context. |
|
public ReaderSource |
readerSource()Returns the reader source used to look up source fragments during code generation. |
|
public void |
setConstructorAssertionsEnabled(boolean other)Enables or disables constructor assertion generation for the current class. |
|
public SourceUnit |
sourceUnit()Returns the source unit currently being transformed. |
Creates the processing context for one class and the contract model derived from it.
classNode - the class currently being transformedsourceUnit - the owning source unitsource - the reader source backing the source unitAdds a syntax error tied to the given AST node while allowing compilation to continue collecting errors.
msg - the error messageexpr - the AST node providing source coordinatesReturns the mutable contract domain model associated with the current class.
Returns an auxiliary value previously stored in the per-class processing context.
key - the metadata keynull if none has been storedIndicates whether class invariant processing is currently enabled.
true if class invariants should be generatedIndicates whether constructor assertions are currently enabled.
true if constructor assertions should be generatedIndicates whether postcondition processing is currently enabled.
true if postconditions should be generatedIndicates whether precondition processing is currently enabled.
true if preconditions should be generatedStores an auxiliary value in the per-class processing context.
key - the metadata keyvalue - the value to storeReturns the reader source used to look up source fragments during code generation.
Enables or disables constructor assertion generation for the current class.
other - true to keep constructor assertions enabledReturns the source unit currently being transformed.
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.