Class RosettaDerivedStateComputer
java.lang.Object
com.regnosys.rosetta.derivedstate.RosettaDerivedStateComputer
- All Implemented Interfaces:
org.eclipse.xtext.resource.IDerivedStateComputer
public class RosettaDerivedStateComputer
extends Object
implements org.eclipse.xtext.resource.IDerivedStateComputer
Derived state:
- syntactic sugar for if-then: automatically add 'empty'
to the 'else' clause.
- syntactic sugar for `join`: automatically add "" if no
explicit separator is given.
- syntactic sugar for parameter omission: automatically add
`item` if the left operand of an operator is omitted.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddiscardDerivedState(org.eclipse.xtext.resource.DerivedStateAwareResource resource) voidinstallDerivedState(org.eclipse.xtext.resource.DerivedStateAwareResource resource, boolean preLinkingPhase) voidremoveAllDerivedState(org.eclipse.emf.common.util.TreeIterator<org.eclipse.emf.ecore.EObject> tree) voidremoveAllDerivedState(org.eclipse.emf.ecore.EObject root) voidremoveDerivedState(org.eclipse.emf.ecore.EObject obj) voidsetAllDerivedState(org.eclipse.emf.common.util.TreeIterator<org.eclipse.emf.ecore.EObject> tree) voidsetAllDerivedState(org.eclipse.emf.ecore.EObject root) voidsetDerivedState(org.eclipse.emf.ecore.EObject obj)
-
Constructor Details
-
RosettaDerivedStateComputer
public RosettaDerivedStateComputer()
-
-
Method Details
-
installDerivedState
public void installDerivedState(org.eclipse.xtext.resource.DerivedStateAwareResource resource, boolean preLinkingPhase) - Specified by:
installDerivedStatein interfaceorg.eclipse.xtext.resource.IDerivedStateComputer
-
discardDerivedState
public void discardDerivedState(org.eclipse.xtext.resource.DerivedStateAwareResource resource) - Specified by:
discardDerivedStatein interfaceorg.eclipse.xtext.resource.IDerivedStateComputer
-
setDerivedState
public void setDerivedState(org.eclipse.emf.ecore.EObject obj) -
setAllDerivedState
public void setAllDerivedState(org.eclipse.emf.common.util.TreeIterator<org.eclipse.emf.ecore.EObject> tree) -
setAllDerivedState
public void setAllDerivedState(org.eclipse.emf.ecore.EObject root) -
removeDerivedState
public void removeDerivedState(org.eclipse.emf.ecore.EObject obj) -
removeAllDerivedState
public void removeAllDerivedState(org.eclipse.emf.common.util.TreeIterator<org.eclipse.emf.ecore.EObject> tree) -
removeAllDerivedState
public void removeAllDerivedState(org.eclipse.emf.ecore.EObject root)
-