public class CompilerOps
extends java.lang.Object
A COMPILER instance must be created after each COMPILE statement. TODO: check if previous instance must be automatically deleted.
| Modifier and Type | Class and Description |
|---|---|
private static class |
CompilerOps.WorkArea
Stores global data relating to the state of the current context.
|
| Modifier and Type | Field and Description |
|---|---|
private static ContextLocal<CompilerOps.WorkArea> |
local
Stores context-local state variables.
|
| Constructor and Description |
|---|
CompilerOps() |
| Modifier and Type | Method and Description |
|---|---|
static handle |
asHandle()
Get the COMPILER system handle.
|
static void |
compile(boolean save,
java.lang.String proc)
Implementation of the COMPILE statement.
|
static void |
compile(java.lang.String proc)
Implementation of the COMPILE statement.
|
static void |
compileXRefXML(java.lang.String proc,
java.lang.String target)
Implementation of the COMPILE XREF-XML statement.
|
static logical |
error()
Returns the state of the ERROR attribute
|
static void |
error(boolean value)
Setter for ERROR attribute.
|
static void |
error(logical value)
Setter for ERROR attribute.
|
static character |
getClassType()
Returns the state of the CLASS-TYPE attribute
|
static java.lang.Long |
id()
Get this resource's ID.
|
static void |
id(long id)
Set this resource's ID.
|
static integer |
numErrors()
Returns the state of the NUM-MESSAGES attribute
|
static void |
readOnlyError(java.lang.String attribute)
API needed to implement read-only attribute assignment (a 4GL "feature").
|
static void |
readOnlyError(java.lang.String attribute,
java.lang.Object expr)
API needed to implement read-only attribute assignment (a 4GL "feature").
|
static character |
resourceType()
Get the type of its associated handle.
|
static boolean |
unknown()
Implementation for the
WrappedResource.unknown() API. |
static boolean |
valid()
Implementation for the
WrappedResource.valid() API. |
static logical |
warning()
Returns the state of the WARNING attribute
|
private static ContextLocal<CompilerOps.WorkArea> local
public static void compileXRefXML(java.lang.String proc,
java.lang.String target)
proc - The source procedure or class to compile.target - The target where to save the XREF information.public static void compile(java.lang.String proc)
proc - The source procedure or class to compile.public static void compile(boolean save,
java.lang.String proc)
save - Flag indicating if the r-code needs to be saved.proc - The source procedure or class to compile.public static handle asHandle()
public static character getClassType()
public static integer numErrors()
public static logical warning()
public static logical error()
public static void error(boolean value)
value - The new value of ERROR attribute.public static void error(logical value)
value - The new value of ERROR attribute.public static void readOnlyError(java.lang.String attribute)
attribute - The attribute's name.handle.readOnlyError(handle, String)public static void readOnlyError(java.lang.String attribute,
java.lang.Object expr)
attribute - The attribute's name.expr - The value which is attempted to be assigned to the read-only attribute.handle.readOnlyError(handle, String, Object)public static character resourceType()
public static boolean valid()
WrappedResource.valid() API.public static java.lang.Long id()
public static void id(long id)
This is a no-op for system handles.
id - The resource's ID.public static boolean unknown()
WrappedResource.unknown() API.