public final class CodeModelClassFactory extends Object
JDefinedClass
and report class collision errors,
if necessary.
This is just a helper class that simplifies the class name collision
detection. This object maintains no state, so it is OK to use
multiple instances of this.Constructor and Description |
---|
CodeModelClassFactory(ErrorReceiver _errorReceiver) |
Modifier and Type | Method and Description |
---|---|
JDefinedClass |
createClass(JClassContainer parent,
int mod,
String name,
Locator source) |
JDefinedClass |
createClass(JClassContainer parent,
int mod,
String name,
Locator source,
ClassType kind) |
JDefinedClass |
createClass(JClassContainer parent,
String name,
Locator source) |
JDefinedClass |
createClass(JClassContainer parent,
String name,
Locator source,
ClassType kind) |
JDefinedClass |
createInterface(JClassContainer parent,
int mod,
String name,
Locator source) |
JDefinedClass |
createInterface(JClassContainer parent,
String name,
Locator source) |
public CodeModelClassFactory(ErrorReceiver _errorReceiver)
public JDefinedClass createClass(JClassContainer parent, String name, Locator source)
public JDefinedClass createClass(JClassContainer parent, int mod, String name, Locator source)
public JDefinedClass createInterface(JClassContainer parent, String name, Locator source)
public JDefinedClass createInterface(JClassContainer parent, int mod, String name, Locator source)
public JDefinedClass createClass(JClassContainer parent, String name, Locator source, ClassType kind)
public JDefinedClass createClass(JClassContainer parent, int mod, String name, Locator source, ClassType kind)
Copyright © 2019 JBoss by Red Hat. All rights reserved.