I was searching web but find no answer for this case: I am still JAVA newbie working on a rendering sw, lets say I am instancing a class named Shaders which I could very easily do like this:
Shaders someName = new Shaders();
Problem is that I actually need to name it via already existing another Shaders() instance name that comes in a variable named "shdr" and even add a suffix to it so it would look something like this fictional syntax:
Shaders (shdr + "Diffuse") = new Shaders();
How can this be done and mainly can this be done at all in JAVA? For example in FLASH ActionScript (which I am coming from) it is quite easy to do...
The reason I need this is that I have to create new Shaders instance but only in a case specific Shader name is actually parsed (those material shaders are deffined in an external file) and then create new Shader that will take color and other attributes from the previous one but would change the type thus creating new Shader but still having the name from the original one updated with a suffix.