Class JavaScope
java.lang.Object
com.regnosys.rosetta.generator.GeneratorScope<JavaScope>
com.regnosys.rosetta.generator.java.JavaScope
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchildScope(String description) Create a child scope from this one.classScope(String className) getIdentifier(Object obj) Get the generated identifier of the given Rosetta object in the current scope, if it exists.booleanisValidIdentifier(String name) Determine whether `name` is a valid identifier in the target language.methodScope(String methodName) Methods inherited from class com.regnosys.rosetta.generator.GeneratorScope
close, createIdentifier, createIdentifier, createKeySynonym, createSynonym, createUniqueIdentifier, escapeName, getActualName, getDebugInfo, getIdentifierOrThrow, getIdentifiers, getOrCreateIdentifier, getOrCreateIdentifier, getParent, getTakenNames, isClosed, overwriteIdentifier, toString
-
Constructor Details
-
JavaScope
-
JavaScope
-
-
Method Details
-
childScope
Description copied from class:GeneratorScopeCreate a child scope from this one. The implementation should simply call the constructor, e.g., `return new MyScope(this.implicitVarUtil, this);`.- Specified by:
childScopein classGeneratorScope<JavaScope>
-
classScope
-
methodScope
-
lambdaScope
-
isValidIdentifier
Description copied from class:GeneratorScopeDetermine whether `name` is a valid identifier in the target language. E.g., this method should return `false` if `name` is a keyword in the target language.- Specified by:
isValidIdentifierin classGeneratorScope<JavaScope>
-
getIdentifier
Description copied from class:GeneratorScopeGet the generated identifier of the given Rosetta object in the current scope, if it exists.- Overrides:
getIdentifierin classGeneratorScope<JavaScope>
-