|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcreek.representation.constraints.DJavaAdapter
Adapter used as an interface to the DynamicJava source interpreter DynamicJava is distributed under the following license:
DynamicJava - Copyright © 1999 Dyade
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL DYADE BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Constructor Summary | |
DJavaAdapter(Entity entity)
Creates a new instance of DJavaAdapter |
Method Summary | |
void |
add(java.lang.String str)
Add to the end of the script string |
java.lang.String |
checkSyntax(java.lang.String scr)
Performes a syntax check on the source code in the string |
java.lang.String |
testSyntax(java.lang.String scr)
|
ConstraintCheckResult |
validate(java.lang.String scr)
Performes a constraint check. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DJavaAdapter(Entity entity)
entity
- the entity that are subject to constraint checkingMethod Detail |
public ConstraintCheckResult validate(java.lang.String scr)
scr
- the source codepublic java.lang.String checkSyntax(java.lang.String scr)
scr
- the source codepublic java.lang.String testSyntax(java.lang.String scr)
public void add(java.lang.String str)
str
- the string to be added
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |