Questions tagged [generated-code]
231 questions
0
votes
1 answer
Java annotation process not yet generated elements
I use last versions of eclipse, java and https://marketplace.eclipse.org/content/m2e-apt to process annotations. I have a processor that processes a single annotation, and looks at the methods within the annotated class and will take all the…

Emanuel
- 1,333
- 1
- 10
- 11
0
votes
1 answer
How to implement random_bytes(16) from PHP in iOS Objective C?
I want to Implement random_bytes(16) in Objective C, In PHP output string is something like this:
d�g���&���$�
I tried this code for Objective C:
uint8_t randomBytes[16];
int result = SecRandomCopyBytes(kSecRandomDefault, 16,…

reza_khalafi
- 6,230
- 7
- 56
- 82
0
votes
1 answer
Implementing abstract methods from abstract java class in generated jaxb class (inheritance)
The problem:
I have a base class called Schema, which is abstract and it is a non-generated class. I have two generated JAXB classes that inherit from Schema: FixedWidthSchema and DelimitedSchema.
I use an external binding (xjb) file to specify the…

user504342
- 945
- 2
- 16
- 36
0
votes
0 answers
Result not appropriate when generate Date
$date_from = @$_REQUEST['Start'];
$date_from = strtotime($date_from); // Convert date to a UNIX timestamp
$date_to = @$_REQUEST['Finish'];
$date_to = strtotime($date_to);
$day = 86400;
for ($i=$date_from; $i<=$date_to; $i+=86400)
{
echo…

Adi Liem
- 1
- 3
0
votes
1 answer
Reference generated code in Java
I'm creating an android application. I'm using schematic to generate a content provider.
I understand that the actual code used by the application is generated out of the classes I create. Based on that, I'd like to know what problems I will face…

sosegon
- 119
- 1
- 2
- 10
0
votes
1 answer
duplicate dagger2 in generated-src/antlr in Intellij with gradle antlr plugin
I have a working gradle 3.1 dagger2 antlr4 project with antlr plugin. I have a specific generated sources directory configured in the gradle idea plugin and in the Intellij Annotation Processing option. If I build it in Intellij 2016.2.4, the…

Novaterata
- 4,356
- 3
- 29
- 51
0
votes
1 answer
Grails, spring security - login controller's imports not working
I started a new Grails (2.4.4) project in intellij and added compile ":spring-security-core:2.0.0" to install spring security - this worked fine. I then ran s2-quickstart io.mylife.feedmyface User Role to generate domain classes User, Role and…

SeriousLee
- 1,301
- 4
- 20
- 42
0
votes
0 answers
Converting between struct types in Go
So I have a question that I've been trying to figure out for a while and hopefully someone has some insight. Basically, I have two similar, but different structs in Go and I would like to convert between them.
Something like the following:
type A…

Sam G-H
- 627
- 6
- 17
0
votes
1 answer
How to generate documentation and client code for RAML?
I'm new working on a project where they want to use RAML to define the APIs. I got the RAML-JAX-RS p0lugin for Eclipse. With that I was able to generate a RAML file from an existing REST service. I was also able to generate the REST interface…

Mark Boon
- 113
- 2
- 9
0
votes
0 answers
Simulink C-Code Generationed logic
simple question here. I would like to examine the generated c code after it has been generated from Simulink. The problem is, I cannot find any of the logic code, or variables from the model. I've looked through the internet for a solution, but…

Rethipher
- 336
- 1
- 14
0
votes
1 answer
Makefile always says generated-file target is up to date, but generates target as expected
I have a script that, when run, generates a file. I want to create a Makefile to run the script to generate the file if the generated file does not exist or if the script changes.
Here's a simplified version. Let's say I have an executable script…

Ben Shelton
- 35
- 6
0
votes
2 answers
Php - Random string with fixed regexp
Regarding this:
Generating a unique random string of a certain length and restrictions in PHP?
I want it evolved:
function getRandomString($length = 8) {
$characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
…
0
votes
1 answer
XmlSerializer: XSD generated classes serialization issues
Consider the following scenario. We have a XSD file defining a technical document interchange format (one root type composed of several complexTypes).
Additionally, there is a specification defining defining each and every field with value range…

DHN
- 4,807
- 3
- 31
- 45
0
votes
0 answers
auto compile generated visual studio files without adding to project
I created a project in VS2013 that generates C++ source files, and I want it to also compile the generated files to a static-lib without having to add the generated files to the project.
Ideally I want something like a custom build command that…

Shefb
- 1
0
votes
2 answers
How to register a generated controller to the MVC framework?
I have some code that generates a model and a controller class:
public ActionResult Generate()
{
ModelGenerator model = new ModelGenerator("c:/Upload/SampleModel.cs", "CodeDOMSample");
model.addProperties();
model.addConstructor();
…

Frank Michael Kraft
- 2,302
- 5
- 25
- 30