Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
.jrxml内にJavaコードを入れることはできますか?
たとえば、if()または "new ..()"を配置したい
出来ますか?どのように?
ありがとう
コードを入れることはできません。式を入れることしかできません。したがって、次のように置くことができます:
new Something(someParameter)
somebool.booleanValue == true ? new Something() : new OtherThing()
ifただし、 for、 、switch、メソッドまたはクラスを宣言することはできません。
if
for
switch