tudresden.ocl.codegen.decl
Class DeclarativeCodeFragment
java.lang.Object
tudresden.ocl.codegen.decl.DeclarativeCodeFragment
- All Implemented Interfaces:
- CodeFragment
- public class DeclarativeCodeFragment
- extends Object
- implements CodeFragment
Objects of this class represent declarative code fragments.
- Author:
- Sten Loecher
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
constraintName
protected String constraintName
constraintType
protected String constraintType
code
protected String code
additionalInfo
protected String[] additionalInfo
DeclarativeCodeFragment
public DeclarativeCodeFragment(String name,
String type,
String code,
String[] additionalInfo)
getConstrainedType
public String getConstrainedType()
- Specified by:
getConstrainedType
in interface CodeFragment
- Returns:
- the constrained type
getConstrainedOperation
public String getConstrainedOperation()
- Specified by:
getConstrainedOperation
in interface CodeFragment
- Returns:
- always null
getCode
public String getCode()
- Specified by:
getCode
in interface CodeFragment
- Returns:
- the generated code for the constraint
getName
public String getName()
- Specified by:
getName
in interface CodeFragment
- Returns:
- the name of the constraint
getKind
public int getKind()
- Specified by:
getKind
in interface CodeFragment
- Returns:
- always CodeFragment.INV
getResultVariable
public String getResultVariable()
- Specified by:
getResultVariable
in interface CodeFragment
- Returns:
- always null
getAdditionalInfo
public String[] getAdditionalInfo()
- Returns:
- additional Information about the code fragment
Submit a bug
Developed at the Dresden University of Technology.
This software is published under the GNU Lesser General Public License.