コード例 #1
0
 protected OclExpression getConstraintExpression(List <object> constraints)
 {
     if (constraints.Count > 0)
     {
         CSTInvariantCS       invariant  = (CSTInvariantCS)constraints[0];
         CSTExpressionInOclCS expression = invariant.getExpressionNodeCS();
         return(((ExpressionInOclImpl)expression.getAst()).getBodyExpression());
     }
     else
     {
         return(null);
     }
 }
コード例 #2
0
 /* (non-Javadoc)
  * @see br.ufrj.cos.lens.odyssey.tools.psw.parser.cst.CSTVisitor#visitInvariantCSEnd(br.ufrj.cos.lens.odyssey.tools.psw.parser.cst.context.CSTInvariantCS)
  */
 public override void visitInvariantCSEnd(CSTInvariantCS invariantDeclaration)
 {
 }
コード例 #3
0
        /* (non-Javadoc)
	 * @see br.ufrj.cos.lens.odyssey.tools.psw.parser.cst.CSTVisitor#visitInvariantCSBegin(br.ufrj.cos.lens.odyssey.tools.psw.parser.cst.context.CSTInvariantCS)
	 */
        public void visitInvariantCSBegin(CSTInvariantCS invariantDeclaration) {
        }