/** * Initializes me with my environment. * * @param env my environment */ protected ToStringVisitor(Environment<?, C, O, P, EL, PM, S, COA, SSA, CT, ?, ?> env) { this.env = env; this.uml = (env == null)? null : env.getUMLReflection(); }
/** * Initializes me with my environment. * * @param env my environment */ protected ToStringVisitor(Environment<?, C, O, P, EL, PM, S, COA, SSA, CT, ?, ?> env) { this.env = env; this.uml = (env == null)? null : env.getUMLReflection(); }
/** * Initializes me to validate expressions in the specified environment. * * @param environment the environment * * @since 3.1 */ public ValidationVisitor( Environment<PK, C, O, P, EL, PM, S, COA, SSA, CT, CLS, E> environment) { super(); this.env = environment; this.uml = environment.getUMLReflection(); }
public CachedTypeChecker(Environment<?, C, O, P, ?, PM, ?, ?, ?, ?, ?, ?> environment) { super(environment); this.uml = environment.getUMLReflection(); }
/** * Initializes me with my environment. * * @param env my environment */ protected UmlgJavaVisitor(OJAnnotatedClass ojClass, NamedElement element, Environment<?, Classifier, Operation, Property, EnumerationLiteral, Parameter, State, CallOperationAction, SendSignalAction, Constraint, ?, ?> env) { this.ojClass = ojClass; this.element = element; this.env = env; this.uml = (env == null) ? null : env.getUMLReflection(); }
/** * Null-safe alternative to {@link ENamedElement#getName()}. * * @param element a named element that may be <code>null</code> * @return the element's name, or <code>null</code> if the element is <code>null</code> */ private static <PK, C, O, P, EL, PM, S, COA, SSA, CT, CLS, E> String getName( Environment<PK, C, O, P, EL, PM, S, COA, SSA, CT, CLS, E> env, Object element) { return (element == null)? null : env.getUMLReflection().getName(element); }
public OCLSyntaxHelper(Environment<PK, C, O, P, EL, PM, S, COA, SSA, CT, CLS, E> env) { environment = env; stdlib = env.getOCLStandardLibrary(); uml = env.getUMLReflection(); }
public OCLSyntaxHelper(Environment<PK, C, O, P, EL, PM, S, COA, SSA, CT, CLS, E> env) { environment = env; stdlib = env.getOCLStandardLibrary(); uml = env.getUMLReflection(); }
/** * Null-safe alternative to {@link ENamedElement#getName()}. * * @param element a named element that may be <code>null</code> * @return the element's name, or <code>null</code> if the element is <code>null</code> */ private static <PK, C, O, P, EL, PM, S, COA, SSA, CT, CLS, E> String getName( Environment<PK, C, O, P, EL, PM, S, COA, SSA, CT, CLS, E> env, Object element) { return (element == null)? null : env.getUMLReflection().getName(element); }
/** * Queries whether an operation is defined by the <tt>OclAny</tt> type. * * @param env the OCL environment * @param operation an operation * @return <code>true</code> if it is defined by <tt>OclAny</tt>; * <code>false</code>, otherwise */ public static <PK, C, O, P, EL, PM, S, COA, SSA, CT, CLS, E> boolean isOclAnyOperation( Environment<PK, C, O, P, EL, PM, S, COA, SSA, CT, CLS, E> env, O operation) { return env.getUMLReflection().getOwningClassifier(operation) instanceof AnyType<?>; }
/** * Obtains the name of the specified element, if it has one. * * @param namedElement a named element * @return its name, or <code>null</code> if it has none */ protected String getName(Object namedElement) { return getEnvironment().getUMLReflection().getName(namedElement); }
public boolean isStandardLibraryFeature(C owner, Object feature) { boolean result = owner instanceof PredefinedType<?>; if (result) { result = env.getUMLReflection().isOperation(feature) ? !env.getAdditionalOperations(owner).contains(feature) : !env.getAdditionalAttributes(owner).contains(feature); } return result; }
/** * Obtains the name of the specified element, if it has one. * * @param namedElement a named element * @return its name, or <code>null</code> if it has none */ protected String getName(Object namedElement) { return getEnvironment().getUMLReflection().getName(namedElement); }
/** * Initializes me with my environment. * * @param env * my environment */ public AbstractTypeChecker( Environment<?, C, O, P, ?, PM, ?, ?, ?, ?, ?, ?> env) { super(); this.env = env; uml = env.getUMLReflection(); oclFactory = env.getOCLFactory(); stdlib = env.getOCLStandardLibrary(); }
@Override protected ExpressionInOCL<C, PM> getSpecification(CT constraint) { return getEnvironment().getUMLReflection().getSpecification(constraint); }
public AbstractOCLAnalyzer(AbstractOCLParser parser) { super(parser); Environment<PK, C, O, P, EL, PM, S, COA, SSA, CT, CLS, E> env = getOCLEnvironment(); this.environmentFactory = env.getFactory(); oclFactory = createOCLFactory(env); uml = env.getUMLReflection(); }
public AbstractOCLAnalyzer(AbstractOCLParser parser) { super(parser); Environment<PK, C, O, P, EL, PM, S, COA, SSA, CT, CLS, E> env = getOCLEnvironment(); this.environmentFactory = env.getFactory(); oclFactory = createOCLFactory(env); uml = env.getUMLReflection(); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated NOT */ public String getName() { if (name == null) { Environment<?, ?, O, ?, ?, ?, ?, ?, ?, ?, ?, ?> env = Environment.Registry.INSTANCE .getEnvironmentFor(this); name = env.getUMLReflection().getName(getReferredType()); } return name; }
/** * Initializes me with my environment. * * @param ocl the OCL environment */ OCLHelperImpl(OCL<PK, C, O, P, EL, PM, S, COA, SSA, CT, CLS, E> ocl) { this.ocl = ocl; uml = ocl.getEnvironment().getUMLReflection(); oclFactory = ocl.getEnvironment().getOCLFactory(); environmentFactory = ocl.getEnvironment().getFactory(); }
/** * Initializes me with my environment. * * @param ocl the OCL environment */ OCLHelperImpl(OCL<PK, C, O, P, EL, PM, S, COA, SSA, CT, CLS, E> ocl) { this.ocl = ocl; uml = ocl.getEnvironment().getUMLReflection(); oclFactory = ocl.getEnvironment().getOCLFactory(); environmentFactory = ocl.getEnvironment().getFactory(); }