use of php.runtime.reflection.DocumentComment in project jphp by jphp-compiler.
the class ConstantDumper method save.
@Override
public void save(ConstantEntity entity, OutputStream output) throws IOException {
DumpOutputStream dump = new DumpOutputStream(output);
DocumentComment docComment = entity.getDocComment();
if (docComment != null) {
dump.writeUTF(docComment.toString());
} else {
dump.writeUTF("");
}
dump.writeBoolean(entity.isCaseSensitise());
dump.writeEnum(entity.getModifier());
dump.writeName(entity.getName());
dump.writeTrace(debugInformation ? null : entity.getTrace());
dump.writeMemory(entity.getValue());
dump.writeRawData(null);
}
use of php.runtime.reflection.DocumentComment in project jphp by jphp-compiler.
the class PropertyDumper method save.
@Override
public void save(PropertyEntity entity, OutputStream output) throws IOException {
DumpOutputStream print = new DumpOutputStream(output);
DocumentComment docComment = entity.getDocComment();
if (docComment != null) {
print.writeUTF(docComment.toString());
} else {
print.writeUTF("");
}
// static
print.writeBoolean(entity.isStatic());
// modifier
print.writeEnum(entity.getModifier());
// name
print.writeName(entity.getName());
// trace
print.writeTrace(debugInformation ? entity.getTrace() : null);
// ?nullable
print.writeBoolean(entity.isNullable());
// hint type
print.writeEnum(entity.getType());
// hint class type
print.writeName(entity.getTypeClass());
// def
print.writeBoolean(entity.isDefault());
// def value
print.writeMemory(entity.getDefaultValue());
// raw
print.writeRawData(null);
}
Aggregations