public class RexxStrictArgument
extends java.lang.Object
------------------------ Apache Version 2.0 license ------------------------- Copyright (C) 2018-2019 Rony G. Flatscher Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -----------------------------------------------------------------------------
Constructor and Description |
---|
RexxStrictArgument(java.lang.Class<?> type,
java.lang.Object value)
This constructor allows for casting a Java object to the supplied class object which must be strictly matched.
|
RexxStrictArgument(java.lang.Object value)
This constructor accepts any Java object which class object will be queried and stored.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Class<?> |
getClassObject()
Returns the class object which needs to be strictly matched.
|
java.lang.Object |
getValue()
Returns the Java object to be used as the argument value.
|
java.lang.Object |
getValue4Rexx()
Return the value part in a form that is appropriate for ooRexx, ie.
|
java.lang.String |
toString()
Return String representation, showing values of fields.
|
public RexxStrictArgument(java.lang.Object value) throws org.apache.bsf.BSFException
value
- the Java object which class will have to be strictly matchedorg.apache.bsf.BSFException
- if value is nullpublic RexxStrictArgument(java.lang.Class<?> type, java.lang.Object value) throws org.apache.bsf.BSFException
null
, then the clz2CastTo
argument may be of any Class.type
- the Class object to strictly match (can also be a class to cast to)value
- the Java object toorg.apache.bsf.BSFException
- if arugment type and value do not match or the type is nullpublic java.lang.Class<?> getClassObject()
public java.lang.Object getValue()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object getValue4Rexx()