public class ParameterKey
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
(package private) boolean |
dynamicPoly
Flag indicating if the caller's argument is from a direct method call with poly arguments.
|
(package private) boolean |
fromExpression
Flag indicating if the caller's argument is an expression.
|
(package private) java.lang.Integer |
mode
The parameter mode.
|
(package private) java.lang.String |
type
The parameter's data type.
|
| Constructor and Description |
|---|
ParameterKey(java.lang.Integer mode,
java.lang.String type)
Create a new parameter key.
|
ParameterKey(java.lang.Integer mode,
java.lang.String type,
boolean fromExpression,
boolean dynamicPoly)
Create a new parameter key.
|
ParameterKey(LegacyParameter lparam)
Create a new parameter key.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other)
Test
other object for equality. |
int |
hashCode()
Computes the hash code for this object.
|
boolean |
isExtent()
Check if this parameter is extent.
|
boolean |
isFromExpression()
Check if the argument is from an expression.
|
java.lang.String |
render()
Describe the instance as a 4GL parameter.
|
private java.lang.String |
renderMode()
Get a string representation of the mode.
|
private java.lang.String |
renderType()
Get a string representation of the mode.
|
java.lang.String |
scalarType()
Report the type without any encoded extent.
|
java.lang.String |
toJava()
Convert this parameter key to its converted Java equivalent.
|
java.lang.String |
toString()
Get a string representation of this parameter key.
|
boolean |
typeEquivalent(ParameterKey other)
Report if the type of the two parameters is the same.
|
final java.lang.Integer mode
null in case of BUFFER.final java.lang.String type
final boolean fromExpression
final boolean dynamicPoly
public ParameterKey(java.lang.Integer mode,
java.lang.String type)
mode - The parameter mode.type - The parameter type.public ParameterKey(java.lang.Integer mode,
java.lang.String type,
boolean fromExpression,
boolean dynamicPoly)
mode - The parameter mode.type - The parameter type.fromExpression - Flag indicating if the caller's argument is an expression.dynamicPoly - Flag indicating if the caller's argument is from a direct method call with poly arguments.public ParameterKey(LegacyParameter lparam)
lparam - The legacy parameter annotation.public boolean typeEquivalent(ParameterKey other)
other - The instance to compare against.true if the types are the same or are both null. If they are different
(including if only one is null) then false will be returned.public java.lang.String scalarType()
public boolean isFromExpression()
public boolean equals(java.lang.Object other)
other object for equality.equals in class java.lang.Objectother - The object to compare to.true only if the other object is equal to this one.public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String render()
public boolean isExtent()
public java.lang.String toJava()
private java.lang.String renderType()
private java.lang.String renderMode()