public class LazyClassDef extends CompiledClassDef
ClassDef.FieldEntry, ClassDef.StaticFieldEntry_fieldMap, _isFinal, _parentNULL_STRING_ARRAY| Constructor and Description |
|---|
LazyClassDef(java.lang.String name,
java.lang.Class<?> pageClass,
java.lang.String className) |
| Modifier and Type | Method and Description |
|---|---|
Value |
callNew(Env env,
Value[] args)
Creates a new instance.
|
ObjectValue |
createObject(Env env,
QuercusClass cls)
Creates a new object.
|
java.util.Set<java.util.Map.Entry<StringValue,ClassField>> |
fieldSet() |
Expr |
findConstant(java.lang.String name)
Finds the matching constant
|
AbstractFunction |
findConstructor()
Returns the constructor
|
int |
findFieldIndex(java.lang.String name)
Returns the field index.
|
java.util.Set<java.util.Map.Entry<StringValue,AbstractFunction>> |
functionSet() |
java.lang.String |
getComment()
Returns the documentation for this class.
|
java.lang.String |
getExtension()
Returns the name of the extension that this class is part of.
|
ClassField |
getField(StringValue name) |
java.lang.String |
getFieldComment(StringValue name)
Returns the comment for the specified field.
|
java.util.ArrayList<java.lang.String> |
getFieldNames()
Returns the key set.
|
java.lang.String[] |
getInterfaces()
Returns the interfaces.
|
java.lang.String |
getName()
Returns the name.
|
java.lang.String |
getParentName()
Returns the parent name.
|
java.lang.String |
getStaticFieldComment(StringValue name)
Returns the comment for the specified static field.
|
java.lang.String[] |
getTraits()
Returns the interfaces.
|
boolean |
hasNonPublicMethods()
Returns true if the class has private/protected methods.
|
void |
init() |
void |
initClassFields(QuercusClass cl,
java.lang.String bindingClassName)
Initialize the quercus class fields.
|
void |
initClassMethods(QuercusClass cl,
java.lang.String bindingClassName)
Initialize the quercus class methods.
|
void |
initInstance(Env env,
Value value,
boolean isInitFieldValues)
Initialize the quercus class.
|
boolean |
isA(Env env,
java.lang.String name)
Returns value for instanceof.
|
boolean |
isAbstract()
Return true for an abstract class.
|
boolean |
isFinal()
Returns true for a final class.
|
boolean |
isInterface()
Return true for an interface class.
|
ClassDef |
loadClassDef()
forces a load of any lazy ClassDef
|
CompiledClassDef |
toClassDef() |
java.lang.String |
toString() |
addFieldIndex, callNew, get, getArg, getArgRef, getArray, getObject, getRef, initClassDef, newInstance, put, put, putRef, removeaddInterface, addInterfaces, addTrait, addTraitAlias, addTraitInsteadOf, addTraits, getCall, getCallStatic, getLocation, getSerialize, getTraitAliasMap, getTraitInsteadofMap, getUnserialize, hasTrait, init, isTrait, staticFieldSetpublic LazyClassDef(java.lang.String name,
java.lang.Class<?> pageClass,
java.lang.String className)
public CompiledClassDef toClassDef()
public ClassDef loadClassDef()
loadClassDef in class ClassDefpublic java.lang.String getParentName()
getParentName in class ClassDefpublic java.lang.String getExtension()
ClassDefgetExtension in class ClassDefpublic java.lang.String[] getInterfaces()
getInterfaces in class ClassDefpublic java.lang.String[] getTraits()
public boolean isAbstract()
isAbstract in class ClassDefpublic boolean isInterface()
isInterface in class ClassDefpublic boolean isFinal()
isFinal in class CompiledClassDefpublic java.lang.String getComment()
getComment in class ClassDefpublic java.lang.String getFieldComment(StringValue name)
getFieldComment in class ClassDefpublic java.lang.String getStaticFieldComment(StringValue name)
getStaticFieldComment in class ClassDefpublic boolean hasNonPublicMethods()
ClassDefhasNonPublicMethods in class ClassDefpublic void initClassMethods(QuercusClass cl, java.lang.String bindingClassName)
initClassMethods in class CompiledClassDefcl - add methods to this QuercusClassbindingClassName - name of the owning class (for __CLASS__ resolution)public void initClassFields(QuercusClass cl, java.lang.String bindingClassName)
initClassFields in class CompiledClassDefcl - add fields to this QuercusClassbindingClassName - name of the owning class (for static fields)public ObjectValue createObject(Env env, QuercusClass cls)
createObject in class ClassDefpublic Value callNew(Env env, Value[] args)
callNew in class CompiledClassDefpublic void initInstance(Env env, Value value, boolean isInitFieldValues)
initInstance in interface InstanceInitializerinitInstance in class CompiledClassDefpublic boolean isA(Env env, java.lang.String name)
public AbstractFunction findConstructor()
findConstructor in class CompiledClassDefpublic Expr findConstant(java.lang.String name)
findConstant in class ClassDefpublic int findFieldIndex(java.lang.String name)
findFieldIndex in class CompiledClassDefpublic java.util.ArrayList<java.lang.String> getFieldNames()
getFieldNames in class CompiledClassDefpublic java.util.Set<java.util.Map.Entry<StringValue,ClassField>> fieldSet()
public ClassField getField(StringValue name)
getField in class CompiledClassDefpublic java.util.Set<java.util.Map.Entry<StringValue,AbstractFunction>> functionSet()
functionSet in class ClassDef